]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/issue-55872.rs
Rollup merge of #95504 - jyn514:library-alias, r=Mark-Simulacrum
[rust.git] / src / test / ui / impl-trait / issue-55872.rs
index 183728b0f7f0a5224386c52da030a73c3899ea6d..c4e6f6436085451ea1f8e7a5af1e8e9f44fd0a2a 100644 (file)
@@ -10,8 +10,8 @@ impl<S> Bar for S {
     type E = impl Copy;
 
     fn foo<T>() -> Self::E {
-        //~^ ERROR type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
         || ()
+        //~^ ERROR type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
     }
 }