]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-handler/panic-handler-std.stderr
e4069b196ff04a31e3709d85b947fd0bda8f1141
[rust.git] / src / test / ui / panic-handler / panic-handler-std.stderr
1 error[E0152]: found duplicate lang item `panic_impl`
2   --> $DIR/panic-handler-std.rs:8:1
3    |
4 LL | fn panic(info: PanicInfo) -> ! {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: the lang item is first defined in crate `std` (which `panic_handler_std` depends on)
8    = note: first definition in `std` loaded from SYSROOT/libstd-*.rlib
9    = note: second definition in the local crate (`panic_handler_std`)
10
11 error: argument should be `&PanicInfo`
12   --> $DIR/panic-handler-std.rs:8: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`.