X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fissues%2Fissue-60283.stderr;h=650570b6471eb13266ce99e8273e68350eaaf272;hb=90f6d7becb6bce73b8a8a709c76c23554f859770;hp=ad679bfa22063cd39d21f78c34dd65002fba3cf5;hpb=7942d9a65a1100c840c7d55172c7e9588066719d;p=rust.git diff --git a/src/test/ui/issues/issue-60283.stderr b/src/test/ui/issues/issue-60283.stderr index ad679bfa220..149562f8fb3 100644 --- a/src/test/ui/issues/issue-60283.stderr +++ b/src/test/ui/issues/issue-60283.stderr @@ -10,9 +10,27 @@ LL | F: for<'a> FnMut(>::Item), LL | foo((), drop) | ^^^^ | | - | expected signature of `fn(<() as Trait<'a>>::Item) -> _` + | expected signature of `for<'a> fn(<() as Trait<'a>>::Item) -> _` | found signature of `fn(()) -> _` -error: aborting due to previous error +error[E0277]: the size for values of type `<() as Trait<'_>>::Item` cannot be known at compilation time + --> $DIR/issue-60283.rs:17:13 + | +LL | foo((), drop) + | ^^^^ doesn't have a size known at compile-time + | + ::: $SRC_DIR/core/src/mem/mod.rs:LL:COL + | +LL | pub fn drop(_x: T) {} + | - required by this bound in `std::mem::drop` + | + = help: the trait `Sized` is not implemented for `<() as Trait<'_>>::Item` +help: consider further restricting the associated type + | +LL | fn main() where <() as Trait<'_>>::Item: Sized { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors -For more information about this error, try `rustc --explain E0631`. +Some errors have detailed explanations: E0277, E0631. +For more information about an error, try `rustc --explain E0277`.