rust/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs
2023-01-11 09:32:08 +00:00

7 lines
147 B
Rust

#![feature(unix_sigpipe)]
#[unix_sigpipe = "inherit"] //~ error: `unix_sigpipe` attribute can only be used on `fn main()`
fn f() {}
fn main() {}