File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
2
2
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
4
+
5
+ // NOTE: fix a panic strategy to prevent differing errors subject to target's default panic strategy
6
+ // which changes between targets. The specific panic strategy doesn't matter for test intention.
7
+ //@ compile-flags: -Cpanic=abort
8
+
5
9
//@ aux-build: cfg_false_lib_no_std_before.rs
6
10
7
11
#![ no_std]
@@ -11,6 +15,3 @@ extern crate cfg_false_lib_no_std_before as _;
11
15
fn main ( ) { }
12
16
13
17
//~? ERROR `#[panic_handler]` function required, but not found
14
- // FIXME: This error is target-dependent, could be served by some "optional error" annotation
15
- // instead of `dont-require-annotations`.
16
- //FIXME~? ERROR unwinding panics are not supported without std
You can’t perform that action at this time.
0 commit comments