X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Ftype-alias-impl-trait%2Fgeneric_type_does_not_live_long_enough.rs;h=d3e169a70d3f7f30471d26e9186092e2a83ad880;hb=6b49435480ea9a6d8bbd7fd2acf7b3aa6607577c;hp=cb90776472b5dc543fd395548d0cbe41082ca61f;hpb=6702f20ca7a117e249d31c96f2c5f48f1bb4eaaa;p=rust.git diff --git a/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs b/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs index cb90776472b..d3e169a70d3 100644 --- a/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs +++ b/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs @@ -4,7 +4,7 @@ fn main() { let y = 42; let x = wrong_generic(&y); let z: i32 = x; - //~^ ERROR non-defining opaque type use + //~^ ERROR expected generic type parameter, found `&'static i32 } type WrongGeneric = impl 'static;