rust/tests/ui/feature-gates/feature-gate-pattern-complexity.rs
2024-03-03 13:10:15 +01:00

7 lines
181 B
Rust

// check that `pattern_complexity` is feature-gated
#![pattern_complexity = "42"]
//~^ ERROR: the `#[pattern_complexity]` attribute is just used for rustc unit tests
fn main() {}