mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
23 lines
1.1 KiB
Rust
23 lines
1.1 KiB
Rust
#![deny(uncommon_codepoints, unused_attributes)]
|
|
|
|
mod foo {
|
|
#![allow(uncommon_codepoints)]
|
|
//~^ ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
|
|
#[allow(uncommon_codepoints)]
|
|
//~^ ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
const BAR: f64 = 0.000001;
|
|
|
|
}
|
|
|
|
#[allow(uncommon_codepoints)]
|
|
//~^ ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
|
fn main() {
|
|
}
|