]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/forbid-member-group.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / 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 }