mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
421 B
Rust
17 lines
421 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
|
|
//~| WARNING incompatible with previous forbid
|
|
//~| WARNING previously accepted
|
|
//~| WARNING incompatible with previous forbid
|
|
//~| WARNING previously accepted
|
|
fn main() {
|
|
let a: ();
|
|
}
|