]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/typeck/type-placeholder-fn-in-const.rs
Rollup merge of #100862 - ehuss:tidy-crossbeam, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / type-placeholder-fn-in-const.rs
index f657bea164872d9a96777e427d37d6cb8c6054d7..ab2e2d8c53aa3eb2166af328d8aaff2a536a84b9 100644 (file)
@@ -2,13 +2,13 @@
 
 trait Test {
     const TEST: fn() -> _;
-    //~^ ERROR: the type placeholder `_` is not allowed within types on item signatures for functions [E0121]
-    //~| ERROR: the type placeholder `_` is not allowed within types on item signatures for constants [E0121]
+    //~^ ERROR: the placeholder `_` is not allowed within types on item signatures for functions [E0121]
+    //~| ERROR: the placeholder `_` is not allowed within types on item signatures for constants [E0121]
 }
 
 impl Test for MyStruct {
     const TEST: fn() -> _ = 42;
-    //~^ ERROR: the type placeholder `_` is not allowed within types on item signatures for functions [E0121]
+    //~^ ERROR: the placeholder `_` is not allowed within types on item signatures for functions [E0121]
 }
 
 fn main() {}