
The `sig_dfl` variant of the attribute is the most likely variant to be stabilized first, and thus to become the "most allowed" variant of the attribute. Because of this, it is the most appropriate variant to use in syntax tests, because even if the most allowed variant is used, the compiler shall still emit errors if it e.g. is used in the wrong places.
8 lines
264 B
Text
8 lines
264 B
Text
error: malformed `unix_sigpipe` attribute input
|
|
--> $DIR/unix_sigpipe-list.rs:3:1
|
|
|
|
|
LL | #[unix_sigpipe(sig_dfl)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[unix_sigpipe = "inherit|sig_ign|sig_dfl"]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|