mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
261 B
Rust
14 lines
261 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: ();
|
|
}
|