From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/extern/extern-crate-visibility.stderr | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/ui/extern/extern-crate-visibility.stderr (limited to 'tests/ui/extern/extern-crate-visibility.stderr') 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`. -- cgit v1.2.3