From af36f299c64ffca5a0f35a32cb9a8a875c34e3a3 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sat, 21 Sep 2019 12:05:03 -0700 Subject: [PATCH] Fix ordering of messages in a UI test. --- .../tests/ui-fail/responder-types.stderr | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/core/codegen/tests/ui-fail/responder-types.stderr b/core/codegen/tests/ui-fail/responder-types.stderr index 46ab5ba2..8abaccf8 100644 --- a/core/codegen/tests/ui-fail/responder-types.stderr +++ b/core/codegen/tests/ui-fail/responder-types.stderr @@ -1,3 +1,11 @@ +error[E0277]: the trait bound `usize: rocket::response::Responder<'_>` is not satisfied + --> $DIR/responder-types.rs:38:13 + | +38 | fn foo() -> usize { 0 } + | ^^^^^ the trait `rocket::response::Responder<'_>` is not implemented for `usize` + | + = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` + error[E0277]: the trait bound `u8: rocket::response::Responder<'_>` is not satisfied --> $DIR/responder-types.rs:11:5 | @@ -47,17 +55,6 @@ error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From as $TRAIT = note: required because of the requirements on the impl of `std::convert::Into>` for `std::string::String` -error[E0277]: the trait bound `usize: rocket::response::Responder<'_>` is not satisfied - --> $DIR/responder-types.rs:39:13 - | -39 | fn foo() -> usize { 0 } - | ^^^^^ the trait `rocket::response::Responder<'_>` is not implemented for `usize` - | - ::: $ROCKET/core/lib/src/handler.rs:202:20 - | -202 | pub fn from>(req: &Request<'_>, responder: T) -> Outcome<'r> { - | ------------- required by this bound in `rocket::handler::, rocket::http::Status, rocket::Data>>::from` - error: aborting due to 6 previous errors For more information about this error, try `rustc --explain E0277`.