diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2024-02-09 06:44:56 +0100 | 
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2024-02-23 22:02:27 +0100 | 
| commit | a1cb3dba840fd56a7f9a0c90346a1fcddc641f9c (patch) | |
| tree | ae3820c2be799c028204a49981a4706ca6dfe213 /tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs | |
| parent | e060274e55a5b09fe6ace6dfe72ca0cca663b711 (diff) | |
| download | rust-a1cb3dba840fd56a7f9a0c90346a1fcddc641f9c.tar.gz rust-a1cb3dba840fd56a7f9a0c90346a1fcddc641f9c.zip | |
tests: Rename unix_sigpipe.rs to unix_sigpipe-bare.rs for clarity
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"]
Diffstat (limited to 'tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs')
| -rw-r--r-- | tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs new file mode 100644 index 00000000000..7bf1c7350c3 --- /dev/null +++ b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs @@ -0,0 +1,4 @@ +#![feature(unix_sigpipe)] + +#[unix_sigpipe] //~ error: valid values for `#[unix_sigpipe = "..."]` are `inherit`, `sig_ign`, or `sig_dfl` +fn main() {} | 
