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..>")]
|
#[post("/?<id>&<rest..>")]
|
||||||
fn other_q(id: usize, rest: S) { }
|
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>")]
|
#[post("/?<id>&<name>")]
|
||||||
fn optionals_q(id: Option<i32>, name: Result<String, &RawStr>) { }
|
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, _>
|
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
|
||||||
|
|
||||||
uri!(other_q: rest = _, id = 100);
|
uri!(other_q: rest = _, id = 100);
|
||||||
//~^ ERROR S: rocket::http::uri::Ignorable<rocket::http::uri::Query>
|
|
||||||
|
|
||||||
uri!(other_q: rest = S, id = _);
|
uri!(other_q: rest = S, id = _);
|
||||||
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
|
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
|
||||||
//~^^ ERROR usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>
|
|
||||||
|
|
||||||
// These are all okay.
|
// These are all okay.
|
||||||
uri!(optionals_q: _, _);
|
uri!(optionals_q: _, _);
|
||||||
|
|
Loading…
Reference in New Issue