]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / default-method-body-is-const-body-checking.stderr
1 error[E0277]: the trait bound `(): ~const Tr` is not satisfied
2 --> $DIR/default-method-body-is-const-body-checking.rs:12:15
3 |
4 LL | foo::<()>();
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-body-checking.rs:12:15
9 |
10 LL | foo::<()>();
11 | ^^
12 note: required by a bound in `foo`
13 --> $DIR/default-method-body-is-const-body-checking.rs:7:28
14 |
15 LL | const fn foo<T>() where T: ~const Tr {}
16 | ^^^^^^^^^ required by this bound in `foo`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.