rust/src/test/ui/panic-handler/panic-handler-duplicate.stderr

20 lines
498 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0152]: duplicate lang item found: `panic_impl`.
2018-09-07 05:43:39 -05:00
--> $DIR/panic-handler-duplicate.rs:25:1
2018-08-08 07:28:26 -05:00
|
LL | / fn panic2(info: &PanicInfo) -> ! { //~ ERROR duplicate lang item found: `panic_impl`.
LL | | loop {}
LL | | }
| |_^
|
note: first defined here.
2018-09-07 05:43:39 -05:00
--> $DIR/panic-handler-duplicate.rs:20:1
2018-08-08 07:28:26 -05:00
|
LL | / fn panic(info: &PanicInfo) -> ! {
LL | | loop {}
LL | | }
| |_^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0152`.