#![allow(incomplete_features)] #![feature(generic_const_exprs)] trait True {} struct Is; impl True for Is {} fn g() //~^ NOTE required by a bound in this where Is<{ std::mem::size_of::() == 0 }>: True, //~^ NOTE required by a bound in `g` //~| NOTE required by this bound in `g` { } fn main() { g::(); //~^ ERROR mismatched types //~| NOTE expected `false`, found `true` //~| NOTE expected constant `false` }