2017-08-29 03:14:59 +00:00
|
|
|
#![feature(plugin, decl_macro)]
|
2016-10-04 21:38:47 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
|
|
|
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
use rocket::{Error, Request};
|
|
|
|
|
2017-09-23 02:04:14 +00:00
|
|
|
#[catch(404)]
|
2016-10-04 21:38:47 +00:00
|
|
|
fn err0() -> &'static str { "hi" }
|
|
|
|
|
2017-09-23 02:04:14 +00:00
|
|
|
#[catch(404)]
|
2016-10-04 21:38:47 +00:00
|
|
|
fn err1a(_err: Error) -> &'static str { "hi" }
|
|
|
|
|
2017-09-23 02:04:14 +00:00
|
|
|
#[catch(404)]
|
2016-10-04 21:38:47 +00:00
|
|
|
fn err1b(_req: &Request) -> &'static str { "hi" }
|
|
|
|
|
2017-09-23 02:04:14 +00:00
|
|
|
#[catch(404)]
|
2016-10-07 03:38:13 +00:00
|
|
|
fn err2a(_err: Error, _req: &Request) -> &'static str { "hi" }
|
|
|
|
|
2017-09-23 02:04:14 +00:00
|
|
|
#[catch(404)]
|
2016-10-08 06:20:49 +00:00
|
|
|
fn err2b<'a>(_err: Error, _req: &'a Request) -> &'a str { "hi" }
|
2016-10-04 21:38:47 +00:00
|
|
|
|
2017-09-10 08:19:38 +00:00
|
|
|
#[test]
|
|
|
|
fn main() { }
|