ee428c55b2
Remove `Word` from the `unix_sigpipe` attribute template so that plain `#[unix_sigpipe]` is not included in suggestions of valid forms of the attribute. Also re-arrange diagnostics code slightly to avoid duplicate diagnostics.
9 lines
246 B
Plaintext
9 lines
246 B
Plaintext
error: malformed `unix_sigpipe` attribute input
|
|
--> $DIR/unix_sigpipe-bare.rs:3:1
|
|
|
|
|
LL | #[unix_sigpipe]
|
|
| ^^^^^^^^^^^^^^^ help: must be of the form: `#[unix_sigpipe = "inherit|sig_ign|sig_dfl"]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|