1 2 3 4 5 6 7 8
// compile-flags: -Znext-solver // check-pass fn foo<T>(x: T) { std::mem::discriminant(&x); } fn main() {}