2021-09-02 10:59:53 +00:00
|
|
|
error[E0277]: the trait bound `NonTrivialDrop: Drop` is not satisfied
|
2021-09-03 09:53:57 +00:00
|
|
|
--> $DIR/const-drop-fail.rs:30:5
|
2021-09-02 10:59:53 +00:00
|
|
|
|
|
|
|
|
|
LL | NonTrivialDrop,
|
|
|
|
|
| ^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `NonTrivialDrop`
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `check`
|
2021-09-03 09:53:57 +00:00
|
|
|
--> $DIR/const-drop-fail.rs:21:19
|
2021-09-02 10:59:53 +00:00
|
|
|
|
|
|
|
|
|
LL | const fn check<T: ~const Drop>(_: T) {}
|
|
|
|
|
| ^^^^^^^^^^^ required by this bound in `check`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `ConstImplWithDropGlue: Drop` is not satisfied
|
2021-09-03 09:53:57 +00:00
|
|
|
--> $DIR/const-drop-fail.rs:32:5
|
2021-09-02 10:59:53 +00:00
|
|
|
|
|
|
|
|
|
LL | ConstImplWithDropGlue(NonTrivialDrop),
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `ConstImplWithDropGlue`
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `check`
|
2021-09-03 09:53:57 +00:00
|
|
|
--> $DIR/const-drop-fail.rs:21:19
|
2021-09-02 10:59:53 +00:00
|
|
|
|
|
|
|
|
|
LL | const fn check<T: ~const Drop>(_: T) {}
|
|
|
|
|
| ^^^^^^^^^^^ required by this bound in `check`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|