blob: d67b756895412da9e1eef06bdf2d10eb9e78e89a (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | // Checks that `impl Trait<{anon_const}> for Type` evaluates successfully.
//@ check-pass
//@ revisions: full min
#![cfg_attr(full, feature(generic_const_exprs))]
#![cfg_attr(full, allow(incomplete_features))]
trait IsZeroTrait<const IS_ZERO: bool>{}
impl IsZeroTrait<{0u8 == 0u8}> for () {}
impl IsZeroTrait<true> for ((),) {}
fn main() {}
 |