summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/param-discr-kind.rs
blob: e319ddea106bc792809eb51117fafb197b1db9df (plain)
1
2
3
4
5
6
7
8
// compile-flags: -Ztrait-solver=next
// check-pass

fn foo<T>(x: T) {
    std::mem::discriminant(&x);
}

fn main() {}