1 The `unwind` attribute was malformed.
3 Erroneous code example:
6 #![feature(unwind_attributes)]
8 #[unwind()] // error: expected one argument
9 pub extern "C" fn something() {}
14 The `#[unwind]` attribute should be used as follows:
16 - `#[unwind(aborts)]` -- specifies that if a non-Rust ABI function
17 should abort the process if it attempts to unwind. This is the safer
20 - `#[unwind(allowed)]` -- specifies that a non-Rust ABI function
21 should be allowed to unwind. This can easily result in Undefined
22 Behavior (UB), so be careful.
24 NB. The default behavior here is "allowed", but this is unspecified
25 and likely to change in the future.