// compile-flags: -Ztrait-solver=next // check-pass fn foo(x: T) { std::mem::discriminant(&x); } fn main() {}