summaryrefslogtreecommitdiffstats
path: root/src/test/ui/stability-attribute/stability-in-private-module.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/stability-attribute/stability-in-private-module.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/stability-attribute/stability-in-private-module.stderr b/src/test/ui/stability-attribute/stability-in-private-module.stderr
new file mode 100644
index 000000000..e64f2acbd
--- /dev/null
+++ b/src/test/ui/stability-attribute/stability-in-private-module.stderr
@@ -0,0 +1,15 @@
+error[E0603]: module `thread_info` is private
+ --> $DIR/stability-in-private-module.rs:2:26
+ |
+LL | let _ = std::thread::thread_info::current_thread();
+ | ^^^^^^^^^^^ private module
+ |
+note: the module `thread_info` is defined here
+ --> $SRC_DIR/std/src/thread/mod.rs:LL:COL
+ |
+LL | use crate::sys_common::thread_info;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0603`.