1 #![allow(incomplete_features)]
2 #![feature(generic_const_exprs)]
6 struct Is<const V: bool>;
8 impl True for Is<true> {}
11 //~^ NOTE required by a bound in this
13 Is<{ std::mem::size_of::<T>() == 0 }>: True,
14 //~^ NOTE required by a bound in `g`
15 //~| NOTE required by this bound in `g`
21 //~^ ERROR mismatched types
22 //~| NOTE expected `false`, found `true`
23 //~| NOTE expected constant `false`