Skip to content

Commit 9623561

Browse files
committed
Update compile tests for changes in rust nightly.
1 parent 343f51d commit 9623561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/codegen/tests/ui-fail/typed-uri-bad-type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ fn simple_q(id: isize) { }
3939

4040
#[post("/?<id>&<rest..>")]
4141
fn other_q(id: usize, rest: S) { }
42+
//~^ ERROR S: rocket::http::uri::Ignorable<rocket::http::uri::Query>
43+
//~^^ ERROR usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>
4244

4345
#[post("/?<id>&<name>")]
4446
fn optionals_q(id: Option<i32>, name: Result<String, &RawStr>) { }
@@ -76,11 +78,9 @@ fn main() {
7678
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
7779

7880
uri!(other_q: rest = _, id = 100);
79-
//~^ ERROR S: rocket::http::uri::Ignorable<rocket::http::uri::Query>
8081

8182
uri!(other_q: rest = S, id = _);
8283
//~^ ERROR S: rocket::http::uri::FromUriParam<rocket::http::uri::Query, _>
83-
//~^^ ERROR usize: rocket::http::uri::Ignorable<rocket::http::uri::Query>
8484

8585
// These are all okay.
8686
uri!(optionals_q: _, _);

0 commit comments

Comments
 (0)