summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/unix_sigpipe/unix_sigpipe-crate.stderr
blob: 1666f4a3ee81c9b44f4f8ef917d5bbf599b66621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: `unix_sigpipe` attribute cannot be used at crate level
  --> $DIR/unix_sigpipe-crate.rs:2:1
   |
LL | #![unix_sigpipe = "inherit"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn main() {}
   |    ---- the inner attribute doesn't annotate this function
   |
help: perhaps you meant to use an outer attribute
   |
LL - #![unix_sigpipe = "inherit"]
LL + #[unix_sigpipe = "inherit"]
   |

error: aborting due to 1 previous error