rust/tests/ui/traits/next-solver/param-discr-kind.rs
2024-02-16 20:02:50 +00:00

9 lines
115 B
Rust

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