]> 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 #105419 - YC:issue-41731, r=petrochenkov
[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:12
3    |
4 LL |         ().a()
5    |            ^ the trait `~const Tr` is not implemented for `()`
6    |
7 note: the trait `Tr` is implemented for `()`, but that implementation is not `const`
8   --> $DIR/default-method-body-is-const-same-trait-ck.rs:8:9
9    |
10 LL |         ().a()
11    |         ^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.