]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/const-fn-mismatch.rs
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / test / compile-fail / const-fn-mismatch.rs
index 92568b27f7c1da143e24a4fd2a982f3df13026d7..7ea72e23779ec5f40871851c233fc0a401aff4c8 100644 (file)
@@ -21,7 +21,7 @@ trait Foo {
 
 impl Foo for u32 {
     const fn f() -> u32 { 22 }
-    //~^ ERROR E0379
+    //~^ ERROR trait fns cannot be declared const
     //~| NOTE trait fns cannot be const
 }