]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/inherent-impl.stderr
Merge commit 'a8385522ade6f67853edac730b5bf164ddb298fd' into simd-remove-autosplats
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / inherent-impl.stderr
1 error: inherent impls cannot be `const`
2   --> $DIR/inherent-impl.rs:7:12
3    |
4 LL | impl const S {}
5    |      ----- ^ inherent impl for this type
6    |      |
7    |      `const` because of this
8    |
9    = note: only trait implementations may be annotated with `const`
10
11 error: inherent impls cannot be `const`
12   --> $DIR/inherent-impl.rs:10:12
13    |
14 LL | impl const T {}
15    |      ----- ^ inherent impl for this type
16    |      |
17    |      `const` because of this
18    |
19    = note: only trait implementations may be annotated with `const`
20
21 error: aborting due to 2 previous errors
22