rust/tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs
Martin Nordholts ee428c55b2 diagnostics: Do not suggest using #[unix_sigpipe] without a value
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.
2024-03-10 15:12:50 +01:00

5 lines
108 B
Rust

#![feature(unix_sigpipe)]
#[unix_sigpipe] //~ error: malformed `unix_sigpipe` attribute input
fn main() {}