2020-06-13 09:58:24 +08:00
|
|
|
#![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]
|
2021-07-20 23:23:22 -04:00
|
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
2020-06-13 09:58:24 +08:00
|
|
|
|
|
|
|
#[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]
|
2021-07-20 23:23:22 -04:00
|
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
2020-06-13 09:58:24 +08:00
|
|
|
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]
|
2021-07-20 23:23:22 -04:00
|
|
|
//~| ERROR allow(uncommon_codepoints) is ignored unless specified at crate level [unused_attributes]
|
2020-06-13 09:58:24 +08:00
|
|
|
fn main() {
|
|
|
|
}
|