summary refs log tree commit diff
path: root/src/test/compile-fail/or-patter-mismatch.rs
blob: 997121f20ca24b62a54c5b86ff4f0eaa56afb7d2 (plain)
1
2
3
4
5
// error-pattern: mismatched types

enum blah { a(int, int, uint), b(int, int), }

fn main() { alt a(1, 1, 2u) { a(_, x, y) | b(x, y) { } } }