diff options
Diffstat (limited to 'src/test/ui/panic-handler/panic-handler-duplicate.stderr')
| -rw-r--r-- | src/test/ui/panic-handler/panic-handler-duplicate.stderr | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/panic-handler/panic-handler-duplicate.stderr b/src/test/ui/panic-handler/panic-handler-duplicate.stderr new file mode 100644 index 00000000000..d8afaa27e26 --- /dev/null +++ b/src/test/ui/panic-handler/panic-handler-duplicate.stderr @@ -0,0 +1,19 @@ +error[E0152]: duplicate lang item found: `panic_impl`. + --> $DIR/panic-handler-duplicate.rs:26:1 + | +LL | / fn panic2(info: &PanicInfo) -> ! { //~ ERROR duplicate lang item found: `panic_impl`. +LL | | loop {} +LL | | } + | |_^ + | +note: first defined here. + --> $DIR/panic-handler-duplicate.rs:21:1 + | +LL | / fn panic(info: &PanicInfo) -> ! { +LL | | loop {} +LL | | } + | |_^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0152`. |
