rust/tests/ui/block-result/issue-5500.rs
2023-01-11 09:32:08 +00:00

8 lines
163 B
Rust

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