]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/stability-attribute/missing-const-stability.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / stability-attribute / missing-const-stability.stderr
index 7eba99a477abe0ed5a14f5933d3546c591e907a5..6f2ade0d0abf406a8ffe7b5e8efeea8cb81081c5 100644 (file)
@@ -10,5 +10,14 @@ error: associated function has missing const stability attribute
 LL |     pub const fn foo() {}
    |     ^^^^^^^^^^^^^^^^^^^^^
 
-error: aborting due to 2 previous errors
+error: implementation has missing const stability attribute
+  --> $DIR/missing-const-stability.rs:27:1
+   |
+LL | / impl const Bar for Foo {
+LL | |
+LL | |     fn fun() {}
+LL | | }
+   | |_^
+
+error: aborting due to 3 previous errors