summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/forbid-group-member.rs
blob: 664edeaa8b43428526229cc992393bed9396bca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Check what happens when we forbid a group but
// then allow a member of that group.
//
// check-pass

#![forbid(unused)]

#[allow(unused_variables)]
//~^ WARNING incompatible with previous forbid
//~| WARNING previously accepted
//~| WARNING incompatible with previous forbid
//~| WARNING previously accepted
//~| WARNING incompatible with previous forbid
//~| WARNING previously accepted
fn main() {
    let a: ();
}