rust/tests/ui/block-result/issue-5500.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

8 lines
158 B
Rust

fn main() {
&panic!()
//~^ ERROR mismatched types
//~| expected unit type `()`
//~| found reference `&_`
//~| expected `()`, found `&_`
}