]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr
Rollup merge of #102470 - est31:stabilize_const_char_convert, r=joshtriplett
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / default-method-body-is-const-same-trait-ck.stderr
1 error[E0277]: the trait bound `(): ~const Tr` is not satisfied
2   --> $DIR/default-method-body-is-const-same-trait-ck.rs:8:9
3    |
4 LL |         ().a()
5    |         ^^ - required by a bound introduced by this call
6    |         |
7    |         the trait `~const Tr` is not implemented for `()`
8    |
9 note: the trait `Tr` is implemented for `()`, but that implementation is not `const`
10   --> $DIR/default-method-body-is-const-same-trait-ck.rs:8:9
11    |
12 LL |         ().a()
13    |         ^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.