summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/extern-crate-idiomatic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/extern-crate-idiomatic.rs')
-rw-r--r--tests/ui/rust-2018/extern-crate-idiomatic.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/extern-crate-idiomatic.rs b/tests/ui/rust-2018/extern-crate-idiomatic.rs
new file mode 100644
index 000000000..3111b1dab
--- /dev/null
+++ b/tests/ui/rust-2018/extern-crate-idiomatic.rs
@@ -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();
+}