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

7 lines
219 B
Rust

#![feature(start)]
#![feature(unix_sigpipe)]
#[start]
#[unix_sigpipe = "inherit"] //~ error: `unix_sigpipe` attribute can only be used on `fn main()`
fn custom_start(argc: isize, argv: *const *const u8) -> isize { 0 }