mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-07 10:12:36 +00:00
13 lines
265 B
Rust
13 lines
265 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
use rocket::{Error, Request};
|
|
|
|
#[catch(404)]
|
|
fn err_a(_a: Error, _b: Request, _c: Error) -> &'static str { "hi" }
|
|
|
|
#[catch(404)]
|
|
fn err_b(_a: (isize, usize)) -> &'static str { "hi" }
|