rust/src/test/compile-fail/bad-record-pat.rs

3 lines
113 B
Rust
Raw Normal View History

2011-07-11 14:13:20 +02:00
// error-pattern:expected a record with 2 fields, found one with 1
2011-07-27 14:19:39 +02:00
fn main() { alt {x: 1, y: 2} { {x: x} { } } }