2019-05-31 20:49:19 +01:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
#![feature(const_generics)]
|
2020-04-22 10:21:32 +02:00
|
|
|
//~^ WARN the feature `const_generics` is incomplete
|
2019-05-31 20:49:19 +01:00
|
|
|
|
|
|
|
trait IsZeroTrait<const IS_ZERO: bool>{}
|
|
|
|
|
|
|
|
impl IsZeroTrait<{0u8 == 0u8}> for () {}
|
|
|
|
|
2019-05-31 21:18:43 +01:00
|
|
|
impl IsZeroTrait<true> for ((),) {}
|
|
|
|
|
2019-05-31 20:49:19 +01:00
|
|
|
fn main() {}
|