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