about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-pattern-complexity.rs
blob: 43e9a00c9a7efa79da82b0e76a525bf6c2103bd0 (plain)
1
2
3
4
5
6
// check that `pattern_complexity` is feature-gated

#![pattern_complexity = "42"]
//~^ ERROR: the `#[pattern_complexity]` attribute is just used for rustc unit tests

fn main() {}