rust/tests/ui/traits/new-solver/param-discr-kind.rs

9 lines
119 B
Rust

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