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

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

8 lines
201 B
Rust
Raw Normal View History

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