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