]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/generic_nondefining_use.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / generic_nondefining_use.rs
index cf43085877f4c7864eefd534a8cb071c130989a6..f39741a6a625cc2d693309227e45982ad3515156 100644 (file)
@@ -5,25 +5,25 @@
 fn main() {}
 
 type OneTy<T> = impl Debug;
-//~^ ERROR could not find defining uses
+
 type OneLifetime<'a> = impl Debug;
-//~^ ERROR could not find defining uses
+
 type OneConst<const X: usize> = impl Debug;
-//~^ ERROR could not find defining uses
+
 
 // Not defining uses, because they doesn't define *all* possible generics.
 
 fn concrete_ty() -> OneTy<u32> {
-    //~^ ERROR non-defining opaque type use in defining scope
     5u32
+    //~^ ERROR non-defining opaque type use in defining scope
 }
 
 fn concrete_lifetime() -> OneLifetime<'static> {
-    //~^ ERROR non-defining opaque type use in defining scope
     6u32
+    //~^ ERROR non-defining opaque type use in defining scope
 }
 
 fn concrete_const() -> OneConst<{ 123 }> {
-    //~^ ERROR non-defining opaque type use in defining scope
     7u32
+    //~^ ERROR non-defining opaque type use in defining scope
 }