about summary refs log tree commit diff
path: root/tests/ui/check-cfg/and-more-diagnostic.rs
blob: 5422829c5b313e42fa7d86ee3f163344fe5f22ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This test makes sure that we don't emit a long list of possible values
// but that we stop at a fix point and say "and X more".
//
//@ check-pass
//@ no-auto-check-cfg
//@ compile-flags: --check-cfg=cfg()
//@ normalize-stderr: "and \d+ more" -> "and X more"
//@ normalize-stderr: "`[a-zA-Z0-9_\.-]+`" -> "`xxx`"

fn main() {
    cfg!(target_feature = "zebra");
    //~^ WARNING unexpected `cfg` condition value
}