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

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

7 lines
143 B
Rust
Raw Normal View History

2023-11-11 08:01:58 -06:00
#![feature(const_trait_impl)]
const fn tilde_question<T: ~const ?Sized>() {}
//~^ ERROR `~const` and `?` are mutually exclusive
fn main() {}