mirror of https://github.com/rwf2/Rocket.git
Fix 'unknown-media-type' compile-fail test.
This commit is contained in:
parent
1b90f6ac83
commit
defb0e2942
|
@ -1,3 +1,5 @@
|
||||||
|
// must-compile-successfully
|
||||||
|
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![plugin(rocket_codegen)]
|
#![plugin(rocket_codegen)]
|
||||||
|
|
||||||
|
@ -12,7 +14,4 @@ fn two() -> &'static str { "hi" }
|
||||||
#[get("/", format = "x-custom/x-custom")] //~ WARNING not a known media type
|
#[get("/", format = "x-custom/x-custom")] //~ WARNING not a known media type
|
||||||
fn three() -> &'static str { "hi" }
|
fn three() -> &'static str { "hi" }
|
||||||
|
|
||||||
// Make the test fail here so we can actually check for the warnings above.
|
|
||||||
assert!(false);
|
|
||||||
|
|
||||||
fn main() { }
|
fn main() { }
|
||||||
|
|
Loading…
Reference in New Issue