2023-04-10 14:20:38 +03:00
|
|
|
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
|
|
|
|
|
|
2025-04-02 18:13:53 +03:00
|
|
|
//@ compile-flags: --error-format=human
|
|
|
|
|
//@ error-pattern: `#[panic_handler]` function required, but not found
|
2023-04-10 14:20:38 +03:00
|
|
|
//@ dont-check-compiler-stderr
|
|
|
|
|
//@ aux-build: cfg_false_lib_no_std_before.rs
|
|
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
|
|
extern crate cfg_false_lib_no_std_before as _;
|
|
|
|
|
|
|
|
|
|
fn main() {}
|
2025-03-29 02:41:32 +03:00
|
|
|
|
2025-04-02 18:13:53 +03:00
|
|
|
// FIXME: The second error is target-dependent.
|
|
|
|
|
//FIXME~? ERROR `#[panic_handler]` function required, but not found
|
|
|
|
|
//FIXME~? ERROR unwinding panics are not supported without std
|