mirror of https://github.com/rwf2/Rocket.git
Update compile tests for changes in rust nightly.
This commit is contained in:
parent
343f51d550
commit
96235615ce
|
@ -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: _, _);
|
||||
|
|
Loading…
Reference in New Issue