rust/tests/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.rs

8 lines
201 B
Rust
Raw Normal View History

2021-08-25 14:30:09 +00:00
#![feature(const_trait_impl)]
#![feature(associated_type_bounds)]
2021-08-25 15:21:55 +00:00
struct TildeQuestion<T: ~const ?Sized>(std::marker::PhantomData<T>);
2021-08-25 14:30:09 +00:00
//~^ ERROR `~const` and `?` are mutually exclusive
fn main() {}