fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
474 B14 linesraw
1error: const `impl` for trait `A` which is not marked with `#[const_trait]`
2  --> $DIR/const-impl-requires-const-trait.rs:8:12
3   |
4LL | pub trait A {}
5   | - help: mark `A` as const: `#[const_trait]`
6...
7LL | 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
13error: aborting due to previous error
14