Fix 'unknown-media-type' compile-fail test.

This commit is contained in:
Sergio Benitez 2018-03-22 13:31:33 -05:00
parent 1b90f6ac83
commit defb0e2942
1 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,5 @@
// must-compile-successfully
#![feature(plugin)]
#![plugin(rocket_codegen)]
@ -12,7 +14,4 @@ fn two() -> &'static str { "hi" }
#[get("/", format = "x-custom/x-custom")] //~ WARNING not a known media type
fn three() -> &'static str { "hi" }
// Make the test fail here so we can actually check for the warnings above.
assert!(false);
fn main() { }