1 error[E0277]: the trait bound `(): ~const Tr` is not satisfied
2 --> $DIR/default-method-body-is-const-body-checking.rs:12:15
5 | ^^ the trait `~const Tr` is not implemented for `()`
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
12 note: required by a bound in `foo`
13 --> $DIR/default-method-body-is-const-body-checking.rs:7:28
15 LL | const fn foo<T>() where T: ~const Tr {}
16 | ^^^^^^^^^ required by this bound in `foo`
17 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
19 LL | pub trait Foo where (): ~const Tr {
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0277`.