summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-crate-visibility.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/extern/extern-crate-visibility.stderr')
-rw-r--r--tests/ui/extern/extern-crate-visibility.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/extern/extern-crate-visibility.stderr b/tests/ui/extern/extern-crate-visibility.stderr
new file mode 100644
index 000000000..9eeb83ae1
--- /dev/null
+++ b/tests/ui/extern/extern-crate-visibility.stderr
@@ -0,0 +1,27 @@
+error[E0603]: crate import `core` is private
+ --> $DIR/extern-crate-visibility.rs:6:10
+ |
+LL | use foo::core::cell;
+ | ^^^^ private crate import
+ |
+note: the crate import `core` is defined here
+ --> $DIR/extern-crate-visibility.rs:2:5
+ |
+LL | extern crate core;
+ | ^^^^^^^^^^^^^^^^^^
+
+error[E0603]: crate import `core` is private
+ --> $DIR/extern-crate-visibility.rs:9:10
+ |
+LL | foo::core::cell::Cell::new(0);
+ | ^^^^ private crate import
+ |
+note: the crate import `core` is defined here
+ --> $DIR/extern-crate-visibility.rs:2:5
+ |
+LL | extern crate core;
+ | ^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0603`.