mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
62ba3e70a1
The previous output was unintuitive to users.
15 lines
257 B
Rust
15 lines
257 B
Rust
enum Whatever {
|
|
}
|
|
|
|
fn foo(x: Whatever) {
|
|
match x {
|
|
Some(field) =>
|
|
//~^ ERROR mismatched types
|
|
//~| expected `Whatever`, found `Option<_>`
|
|
//~| expected enum `Whatever`
|
|
//~| found enum `Option<_>`
|
|
field.access(),
|
|
}
|
|
}
|
|
|
|
fn main(){}
|