Update compile tests for changes in rust nightly.

This commit is contained in:
Jeb Rosen 2019-11-29 11:18:32 -08:00
parent 343f51d550
commit 96235615ce
1 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,8 @@ fn simple_q(id: isize) { }
#[post("/?<id>&<rest..>")]
fn other_q(id: usize, rest: S) { }
//~^ ERROR S: rocket::http::uri::Ignorable<rocket::http::uri::Query>
//~^^ ERROR usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>
#[post("/?<id>&<name>")]
fn optionals_q(id: Option<i32>, name: Result<String, &RawStr>) { }
@ -76,11 +78,9 @@ fn main() {
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
uri!(other_q: rest = _, id = 100);
//~^ ERROR S: rocket::http::uri::Ignorable<rocket::http::uri::Query>
uri!(other_q: rest = S, id = _);
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
//~^^ ERROR usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>
// These are all okay.
uri!(optionals_q: _, _);