//@ check-pass #![allow(incomplete_features)] #![feature(generic_const_exprs)] pub struct Assert(); pub trait IsTrue {} impl IsTrue for Assert {} pub trait IsNotZST {} impl IsNotZST for T where Assert<{ std::mem::size_of::() > 0 }>: IsTrue {} fn main() {}