The test is for the "bare" variant of the attribute that looks like this:
#[unix_sigpipe]
which is not allowed, because it must look like this:
#[unix_sigpipe = "sig_ign"]
5 lines
149 B
Rust
5 lines
149 B
Rust
#![feature(unix_sigpipe)]
|
|
|
|
#[unix_sigpipe] //~ error: valid values for `#[unix_sigpipe = "..."]` are `inherit`, `sig_ign`, or `sig_dfl`
|
|
fn main() {}
|