2016-10-04 21:38:47 +00:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(rocket_codegen)]
|
|
|
|
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
use rocket::{Error, Request};
|
|
|
|
|
|
|
|
#[error(404)]
|
|
|
|
fn err0() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[error(404)]
|
|
|
|
fn err1a(_err: Error) -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[error(404)]
|
|
|
|
fn err1b(_req: &Request) -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[error(404)]
|
2016-10-07 03:38:13 +00:00
|
|
|
fn err2a(_err: Error, _req: &Request) -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[error(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
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|
|
|
|
|