]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr
New upstream version 1.65.0+dfsg1
[rustc.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 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
15 |
16 LL | pub trait Tr where (): ~const Tr {
17 | +++++++++++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.