mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 05:55:42 +00:00
23 lines
879 B
Rust
23 lines
879 B
Rust
// ignore-tidy-linelength
|
|
//@ build-fail
|
|
//@ dont-require-annotations: ERROR
|
|
//@ dont-check-compiler-stderr
|
|
//@ aux-build:panic-runtime-unwind.rs
|
|
//@ aux-build:panic-runtime-unwind2.rs
|
|
//@ aux-build:panic-runtime-lang-items.rs
|
|
|
|
#![no_std]
|
|
#![no_main]
|
|
|
|
extern crate panic_runtime_unwind;
|
|
extern crate panic_runtime_unwind2;
|
|
extern crate panic_runtime_lang_items;
|
|
|
|
fn main() {}
|
|
|
|
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
|
|
// FIXME: These errors are target-dependent, could be served by some "optional error" annotation
|
|
// instead of `dont-require-annotations`.
|
|
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind2` is not compiled with this crate's panic strategy `abort`
|
|
//FIXME~? ERROR the crate `panic_runtime_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|