]>
Commit | Line | Data |
---|---|---|
041b39d2 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/issue-5500.rs:2:5 |
041b39d2 | 3 | | |
0531ce1d | 4 | LL | fn main() { |
3b2f2976 | 5 | | - expected `()` because of default return type |
0531ce1d | 6 | LL | &panic!() |
94222f64 | 7 | | ^^^^^^^^^ expected `()`, found reference |
041b39d2 | 8 | | |
60c5eb7d XL |
9 | = note: expected unit type `()` |
10 | found reference `&_` | |
94222f64 XL |
11 | help: consider removing the borrow |
12 | | | |
13 | LL - &panic!() | |
14 | LL + panic!() | |
923072b8 | 15 | | |
041b39d2 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
0531ce1d | 19 | For more information about this error, try `rustc --explain E0308`. |