mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
9 lines
359 B
Rust
9 lines
359 B
Rust
// check that `pattern_complexity_limit` is feature-gated
|
|
|
|
#![pattern_complexity_limit = "42"]
|
|
//~^ ERROR: use of an internal attribute [E0658]
|
|
//~| NOTE the `#[pattern_complexity_limit]` attribute is an internal implementation detail that will never be stable
|
|
//~| NOTE: the `#[pattern_complexity_limit]` attribute is used for rustc unit tests
|
|
|
|
fn main() {}
|