1 The `unwind` attribute was malformed.
3 Erroneous code example:
5 ```ignore (compile_fail not working here; see Issue #43707)
6 #[unwind()] // error: expected one argument
7 pub extern fn something() {}
12 The `#[unwind]` attribute should be used as follows:
14 - `#[unwind(aborts)]` -- specifies that if a non-Rust ABI function
15 should abort the process if it attempts to unwind. This is the safer
18 - `#[unwind(allowed)]` -- specifies that a non-Rust ABI function
19 should be allowed to unwind. This can easily result in Undefined
20 Behavior (UB), so be careful.
22 NB. The default behavior here is "allowed", but this is unspecified
23 and likely to change in the future.