2025-04-05 19:19:56 +03:00
|
|
|
fn main() { //~ NOTE expected `()` because of default return type
|
2017-02-04 13:09:04 +08:00
|
|
|
&panic!()
|
2017-03-18 12:24:42 -04:00
|
|
|
//~^ ERROR mismatched types
|
2025-04-05 19:19:56 +03:00
|
|
|
//~| NOTE expected unit type `()`
|
|
|
|
|
//~| NOTE found reference `&_`
|
|
|
|
|
//~| NOTE expected `()`, found `&_`
|
2017-02-04 13:09:04 +08:00
|
|
|
}
|