2017-06-24 00:43:35 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-5500.rs:2:5
|
2017-06-24 00:43:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn main() {
|
2023-09-30 19:29:41 +00:00
|
|
|
| - expected `()` because of default return type
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | &panic!()
|
2023-01-03 02:00:33 +00:00
|
|
|
| ^^^^^^^^^ expected `()`, found `&_`
|
2017-06-24 00:43:35 +00:00
|
|
|
|
|
2019-11-14 22:08:08 +00:00
|
|
|
= note: expected unit type `()`
|
|
|
|
found reference `&_`
|
2021-06-28 18:22:47 +00:00
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - &panic!()
|
|
|
|
LL + panic!()
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2017-06-24 00:43:35 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-06-24 00:43:35 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|