]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/inherent-impl.stderr
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
[rust.git] / tests / 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