diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/rust-2018/extern-crate-idiomatic.fixed | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic.fixed b/src/test/ui/rust-2018/extern-crate-idiomatic.fixed new file mode 100644 index 000000000..3111b1dab --- /dev/null +++ b/src/test/ui/rust-2018/extern-crate-idiomatic.fixed @@ -0,0 +1,18 @@ +// run-pass +// aux-build:edition-lint-paths.rs +// compile-flags:--extern edition_lint_paths +// run-rustfix + +// The "normal case". Ideally we would remove the `extern crate` here, +// but we don't. + +#![feature(rust_2018_preview)] +#![deny(absolute_paths_not_starting_with_crate)] + +extern crate edition_lint_paths; + +use edition_lint_paths::foo; + +fn main() { + foo(); +} |