summaryrefslogtreecommitdiffstats
path: root/tests/ui/stability-attribute/stability-in-private-module.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/stability-attribute/stability-in-private-module.stderr')
-rw-r--r--tests/ui/stability-attribute/stability-in-private-module.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/stability-attribute/stability-in-private-module.stderr b/tests/ui/stability-attribute/stability-in-private-module.stderr
new file mode 100644
index 000000000..2f02a2496
--- /dev/null
+++ b/tests/ui/stability-attribute/stability-in-private-module.stderr
@@ -0,0 +1,12 @@
+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
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0603`.