]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-group-member.rs
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
[rust.git] / src / test / ui / lint / forbid-group-member.rs
1 // Check what happens when we forbid a group but
2 // then allow a member of that group.
3 //
4 // check-pass
5
6 #![forbid(unused)]
7
8 #[allow(unused_variables)]
9 //~^ WARNING incompatible with previous forbid
10 //~| WARNING previously accepted
11 //~| WARNING incompatible with previous forbid
12 //~| WARNING previously accepted
13 //~| WARNING incompatible with previous forbid
14 //~| WARNING previously accepted
15 fn main() {
16     let a: ();
17 }