summaryrefslogtreecommitdiffstats
path: root/tests/ui/occurs-check-3.rs
blob: 9c04204010b7715f2aa7f3d904b450d82ba54aaa (plain)
1
2
3
4
5
// From Issue #778

enum Clam<T> { A(T) }
fn main() { let c; c = Clam::A(c); match c { Clam::A::<isize>(_) => { } } }
//~^ ERROR mismatched types