rust/src/test/ui/const-generics/condition-in-trait-const-arg.rs

11 lines
228 B
Rust
Raw Normal View History

// run-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
trait IsZeroTrait<const IS_ZERO: bool>{}
impl IsZeroTrait<{0u8 == 0u8}> for () {}
fn main() {}