mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-01 07:12:41 +00:00
d4f9525b22
fixes #13
19 lines
346 B
Rust
19 lines
346 B
Rust
#![feature(plugin)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
use rocket::{Error, Request};
|
|
|
|
#[error(404)]
|
|
fn err_a(_a: Error, _b: Request, _c: Error) -> &'static str { "hi" }
|
|
//~^ ERROR: can have at most 2
|
|
|
|
#[error(404)]
|
|
fn err_b(_a: (isize, usize)) -> &'static str { "hi" }
|
|
//~^ ERROR: unexpected error handler argument
|
|
|
|
fn main() {
|
|
}
|
|
|