rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-drop.stock.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

11 lines
328 B
Plaintext

error: `~const` is not allowed here
--> $DIR/const-drop.rs:67:38
|
LL | pub struct ConstDropWithBound<T: ~const SomeTrait>(pub core::marker::PhantomData<T>);
| ^^^^^^^^^^^^^^^^
|
= note: this item cannot have `~const` trait bounds
error: aborting due to 1 previous error