Skip to content

Commit 652f2c7

Browse files
committed
Add test
1 parent 526a398 commit 652f2c7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
let _ = std::thread::thread_info::current_thread();
3+
//~^ERROR module `thread_info` is private
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0603]: module `thread_info` is private
2+
--> $DIR/stability-in-private-module.rs:2:26
3+
|
4+
LL | let _ = std::thread::thread_info::current_thread();
5+
| ^^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0603`.

0 commit comments

Comments
 (0)