rust/tests/ui/issues/issue-7092.rs
Esteban Küber 62ba3e70a1 Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00

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(){}