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`.