]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/forbid-member-group.rs
Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillot
[rust.git] / tests / ui / lint / forbid-member-group.rs
1 // Check what happens when we forbid a member of
2 // a group but then allow the group.
3
4 #![forbid(unused_variables)]
5
6 #[allow(unused)]
7 //~^ ERROR incompatible with previous forbid
8 //~| ERROR incompatible with previous forbid
9 fn main() {
10     let a: ();
11 }