2020-08-10 18:50:58 +00:00
|
|
|
// Checks that `impl Trait<{anon_const}> for Type` evaluates successfully.
|
2019-05-31 20:49:19 +01:00
|
|
|
// run-pass
|
2020-08-09 06:19:57 +00:00
|
|
|
// revisions: full min
|
2019-05-31 20:49:19 +01:00
|
|
|
|
2021-08-27 18:04:57 +02:00
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
2020-08-09 06:19:57 +00:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
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() {}
|