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