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