fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
516 B19 linesraw
1error[E0152]: found duplicate lang item `panic_impl`
2  --> $DIR/panic-handler-std.rs:7:1
3   |
4LL | / fn panic(info: PanicInfo) -> ! {
5LL | |     loop {}
6LL | | }
7   | |_^
8   |
9   = note: first defined in crate `std` (which `panic_handler_std` depends on)
10
11error: argument should be `&PanicInfo`
12  --> $DIR/panic-handler-std.rs:7:16
13   |
14LL | fn panic(info: PanicInfo) -> ! {
15   |                ^^^^^^^^^
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0152`.