mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
aea60b0cc7
The `sig_dfl` variant of the attribute is the most likely variant to be stabilized first, and thus to become the "most allowed" variant of the attribute. Because of this, it is the most appropriate variant to use in syntax tests, because even if the most allowed variant is used, the compiler shall still emit errors if it e.g. is used in the wrong places.
5 lines
135 B
Rust
5 lines
135 B
Rust
#![feature(unix_sigpipe)]
|
|
#![unix_sigpipe = "sig_dfl"] //~ error: `unix_sigpipe` attribute cannot be used at crate level
|
|
|
|
fn main() {}
|