]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr
Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiser
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / const-impl-requires-const-trait.stderr
1 error: const `impl` for trait `A` which is not marked with `#[const_trait]`
2   --> $DIR/const-impl-requires-const-trait.rs:6:12
3    |
4 LL | pub trait A {}
5    | - help: mark `A` as const: `#[const_trait]`
6 ...
7 LL | impl const A for () {}
8    |            ^
9    |
10    = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
11    = note: adding a non-const method body in the future would be a breaking change
12
13 error: aborting due to previous error
14