]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/bounds-are-checked.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / bounds-are-checked.rs
index eecef2338c146095d6e4ae31c4cc73c5612fc10a..83d22161e4e75617fb3845576e8b6843d0eb966a 100644 (file)
@@ -4,11 +4,11 @@
 #![feature(type_alias_impl_trait)]
 
 type X<'a> = impl Into<&'static str> + From<&'a str>;
-//~^ ERROR mismatched types
 
 fn f<'a: 'static>(t: &'a str) -> X<'a> {
     //~^ WARNING unnecessary lifetime parameter
     t
+    //~^ ERROR non-defining opaque type use
 }
 
 fn extend_lt<'a>(o: &'a str) -> &'static str {