]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-group-member.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }