1 error[E0277]: the trait bound `UnconstDrop: Drop` is not satisfied
2 --> $DIR/const-block-const-bound.rs:18:11
5 | - ^^^^^^^^^^^ the trait `Drop` is not implemented for `UnconstDrop`
7 | required by a bound introduced by this call
9 note: required by a bound in `f`
10 --> $DIR/const-block-const-bound.rs:4:15
12 LL | const fn f<T: ~const Drop>(x: T) {}
13 | ^^^^^^^^^^^ required by this bound in `f`
14 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
16 LL | fn main() where UnconstDrop: Drop {
17 | +++++++++++++++++++++++
19 error[E0277]: the trait bound `NonDrop: Drop` is not satisfied
20 --> $DIR/const-block-const-bound.rs:20:11
23 | - ^^^^^^^ the trait `Drop` is not implemented for `NonDrop`
25 | required by a bound introduced by this call
27 note: required by a bound in `f`
28 --> $DIR/const-block-const-bound.rs:4:15
30 LL | const fn f<T: ~const Drop>(x: T) {}
31 | ^^^^^^^^^^^ required by this bound in `f`
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0277`.