]> 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.64.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: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:12
9 |
10 LL | ().a()
11 | ^
12 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
13 |
14 LL | pub trait Tr where (): ~const Tr {
15 | +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.