mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 12:48:20 +00:00
8 lines
227 B
Rust
8 lines
227 B
Rust
fn main() { //~ NOTE expected `()` because of default return type
|
|
&panic!()
|
|
//~^ ERROR mismatched types
|
|
//~| NOTE expected unit type `()`
|
|
//~| NOTE found reference `&_`
|
|
//~| NOTE expected `()`, found `&_`
|
|
}
|