1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
//@ build-fail
//@ needs-unwind
//@ aux-build:panic-runtime-unwind.rs
//@ aux-build:panic-runtime-abort.rs
//@ aux-build:wants-panic-runtime-unwind.rs
//@ aux-build:wants-panic-runtime-abort.rs
//@ aux-build:panic-runtime-lang-items.rs
#![no_std]
#![no_main]
extern crate wants_panic_runtime_unwind;
extern crate wants_panic_runtime_abort;
extern crate panic_runtime_lang_items;
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_abort
//~? ERROR the linked panic runtime `panic_runtime_abort` is not compiled with this crate's panic strategy `unwind`
//~? ERROR the crate `wants_panic_runtime_abort` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
|