35baf5b202
Fix some reversed type of arm pattern and type of search pattern in error message.
11 lines
174 B
Rust
11 lines
174 B
Rust
|
|
struct S { a: int }
|
|
enum E { C(int) }
|
|
|
|
fn main() {
|
|
match S { a: 1 } {
|
|
C(_) => (), //~ ERROR mismatched types: expected `S` but found `E`
|
|
_ => ()
|
|
}
|
|
}
|