]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/inherent-impl.stderr
Add #[const_trait] where needed in tests.
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / inherent-impl.stderr
index 834f6a409f5b69bcbf8c1410a51f6c365880c05f..8c55627031d1edfbaeb6636e237c39f5d5223897 100644 (file)
@@ -1,5 +1,5 @@
 error: inherent impls cannot be `const`
-  --> $DIR/inherent-impl.rs:9:12
+  --> $DIR/inherent-impl.rs:7:12
    |
 LL | impl const S {}
    |      ----- ^ inherent impl for this type
@@ -9,7 +9,7 @@ LL | impl const S {}
    = note: only trait implementations may be annotated with `const`
 
 error: inherent impls cannot be `const`
-  --> $DIR/inherent-impl.rs:12:12
+  --> $DIR/inherent-impl.rs:10:12
    |
 LL | impl const T {}
    |      ----- ^ inherent impl for this type