2022-07-05 12:56:22 -05:00
|
|
|
error: `unix_sigpipe` attribute cannot be used at crate level
|
|
|
|
--> $DIR/unix_sigpipe-crate.rs:2:1
|
|
|
|
|
|
2024-02-09 01:05:32 -06:00
|
|
|
LL | #![unix_sigpipe = "sig_dfl"]
|
2022-07-05 12:56:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-10-17 19:24:21 -05:00
|
|
|
LL |
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2022-07-05 12:56:22 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2024-02-09 01:05:32 -06:00
|
|
|
LL - #![unix_sigpipe = "sig_dfl"]
|
|
|
|
LL + #[unix_sigpipe = "sig_dfl"]
|
2023-10-17 19:24:21 -05:00
|
|
|
|
|
2022-07-05 12:56:22 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-05 12:56:22 -05:00
|
|
|
|