about summary refs log tree commit diff
path: root/tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2024-02-09 06:44:56 +0100
committerMartin Nordholts <martin.nordholts@codetale.se>2024-02-23 22:02:27 +0100
commita1cb3dba840fd56a7f9a0c90346a1fcddc641f9c (patch)
treeae3820c2be799c028204a49981a4706ca6dfe213 /tests/ui/attributes/unix_sigpipe/unix_sigpipe-bare.rs
parente060274e55a5b09fe6ace6dfe72ca0cca663b711 (diff)
downloadrust-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.rs4
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() {}