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

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

fn main() {}