about summary refs log tree commit diff
path: root/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2024-02-09 08:05:32 +0100
committerMartin Nordholts <martin.nordholts@codetale.se>2024-03-11 06:19:30 +0100
commitaea60b0cc78cf7b0d189c52f79563f1e4e82dfb8 (patch)
treeed2230f57686e90a780fe16640f1683898b35354 /tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr
parentc69fda7dc664e62f8920a02a4e55d6207b212c24 (diff)
downloadrust-aea60b0cc78cf7b0d189c52f79563f1e4e82dfb8.tar.gz
rust-aea60b0cc78cf7b0d189c52f79563f1e4e82dfb8.zip
unix_sigpipe: Replace `inherit` with `sig_dfl` in syntax tests
The `sig_dfl` variant of the attribute is the most likely variant to be
stabilized first, and thus to become the "most allowed" variant of the
attribute. Because of this, it is the most appropriate variant to use in
syntax tests, because even if the most allowed variant is used, the
compiler shall still emit errors if it e.g. is used in the wrong places.
Diffstat (limited to 'tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr')
-rw-r--r--tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr
index d5eec9424c8..a8fc51bdbc4 100644
--- a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr
+++ b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr
@@ -1,7 +1,7 @@
 error: `unix_sigpipe` attribute can only be used on `fn main()`
   --> $DIR/unix_sigpipe-struct.rs:3:1
    |
-LL | #[unix_sigpipe = "inherit"]
+LL | #[unix_sigpipe = "sig_dfl"]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 1 previous error