]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/forbid-group-member.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }