summaryrefslogtreecommitdiffstats
path: root/tests/ui/cfg/cfg_false_no_std-2.rs
blob: 0a2bfd5f68b128bc9e997f0fde37d8c85646fcc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.

// dont-check-compiler-stderr
// error-pattern: `#[panic_handler]` function required, but not found
// aux-build: cfg_false_lib_no_std_before.rs

#![no_std]

extern crate cfg_false_lib_no_std_before as _;

fn main() {}