about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-pattern-complexity-limit.rs
blob: ffb444cd9aaf40d1b9d9871a559828d0bb56fdf2 (plain)
1
2
3
4
5
6
7
8
// 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() {}