]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / const-impl-requires-const-trait.stderr
1 error: const `impl`s must be for traits marked with `#[const_trait]`
2   --> $DIR/const-impl-requires-const-trait.rs:6:1
3    |
4 LL | impl const A for () {}
5    | ^^^^^^^^^^^^^^^^^^^
6    |
7 note: this trait must be annotated with `#[const_trait]`
8   --> $DIR/const-impl-requires-const-trait.rs:3:1
9    |
10 LL | pub trait A {}
11    | ^^^^^^^^^^^
12
13 error: aborting due to previous error
14