summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs
blob: cde6719fc9ce428937251148cd783b791e1e7a4a (plain)
1
2
3
4
5
6
#![feature(unix_sigpipe)]

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

fn main() {}