fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
460 B17 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-5500.rs:2:5
3   |
4LL | fn main() {
5   |           - expected `()` because of default return type
6LL |     &panic!()
7   |     ^^^^^^^^^
8   |     |
9   |     expected (), found reference
10   |     help: consider removing the borrow: `panic!()`
11   |
12   = note: expected type `()`
13              found type `&_`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.