diff options
Diffstat (limited to 'tests/ui/occurs-check-3.rs')
-rw-r--r-- | tests/ui/occurs-check-3.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/occurs-check-3.rs b/tests/ui/occurs-check-3.rs new file mode 100644 index 000000000..9c0420401 --- /dev/null +++ b/tests/ui/occurs-check-3.rs @@ -0,0 +1,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 |