summaryrefslogtreecommitdiff
path: root/tests/ui/imports/redundant-import-lang-prelude-attr.rs
blob: 59cd570f44c2595bb10e0001baa3421ac55032ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ check-pass
// Check that we detect imports (of built-in attributes) that are redundant due to
// the language prelude and that we emit a reasonable diagnostic.

// Note that we use the term "extern prelude" in the label even though "language prelude"
// would be more correct. However, it's not worth special-casing this.

// See also the discussion in <https://github.com/rust-lang/rust/pull/122954>.

//@ edition: 2018

#![deny(unused_imports)]

use allow; //FIXME(unused_imports): ~ ERROR the item `allow` is imported redundantly

#[allow(unused)]
fn main() {}