2020-08-10 13:50:58 -05:00
|
|
|
// Checks that `impl Trait<{anon_const}> for Type` evaluates successfully.
|
2019-05-31 14:49:19 -05:00
|
|
|
// run-pass
|
2020-08-09 01:19:57 -05:00
|
|
|
// revisions: full min
|
2019-05-31 14:49:19 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
2020-08-09 01:19:57 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2019-05-31 14:49:19 -05:00
|
|
|
|
|
|
|
trait IsZeroTrait<const IS_ZERO: bool>{}
|
|
|
|
|
|
|
|
impl IsZeroTrait<{0u8 == 0u8}> for () {}
|
|
|
|
|
2019-05-31 15:18:43 -05:00
|
|
|
impl IsZeroTrait<true> for ((),) {}
|
|
|
|
|
2019-05-31 14:49:19 -05:00
|
|
|
fn main() {}
|