rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-drop.stock.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
318 B
Plaintext
Raw Normal View History

2023-11-11 08:01:58 -06:00
error: `~const` is not allowed here
--> $DIR/const-drop.rs:67:38
2023-07-27 10:51:02 -05:00
|
2023-11-11 08:01:58 -06:00
LL | pub struct ConstDropWithBound<T: ~const SomeTrait>(pub core::marker::PhantomData<T>);
2023-11-24 08:32:05 -06:00
| ^^^^^^
2023-07-27 10:51:02 -05:00
|
2023-11-11 08:01:58 -06:00
= note: this item cannot have `~const` trait bounds
2023-07-27 10:51:02 -05:00
error: aborting due to 1 previous error
2023-07-27 10:51:02 -05:00