rust/tests/ui/lint/forbid-group-member.rs
2024-02-16 20:02:50 +00:00

14 lines
262 B
Rust

// Check what happens when we forbid a group but
// then allow a member of that group.
//
//@ check-pass
#![forbid(unused)]
#[allow(unused_variables)]
//~^ WARNING incompatible with previous forbid
//~| WARNING previously accepted
fn main() {
let a: ();
}