about summary refs log tree commit diff
path: root/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs
blob: 467914d6a5e8552dc25ef709832dab5dfe505a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix
//@ compile-flags:--extern edition_lint_paths
//@ edition:2018

#![deny(rust_2018_idioms)]
#![allow(dead_code, unexpected_cfgs)]

// The suggestion span should include the attribute.

#[cfg(not(FALSE))] //~ HELP remove
extern crate edition_lint_paths;
//~^ ERROR unused extern crate

fn main() {}