Skip to content

Commit 41434ff

Browse files
committed
refer to a different module in UI test
1 parent 7668418 commit 41434ff

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fn main() {
2-
let _ = std::thread::thread_info::current_thread();
3-
//~^ERROR module `thread_info` is private
2+
let _ = std::sys::os::errno();
3+
//~^ERROR module `sys` is private
44
}

tests/ui/stability-attribute/stability-in-private-module.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
error[E0603]: module `thread_info` is private
2-
--> $DIR/stability-in-private-module.rs:2:26
1+
error[E0603]: module `sys` is private
2+
--> $DIR/stability-in-private-module.rs:2:18
33
|
4-
LL | let _ = std::thread::thread_info::current_thread();
5-
| ^^^^^^^^^^^ -------------- function `current_thread` is not publicly re-exported
6-
| |
7-
| private module
4+
LL | let _ = std::sys::os::errno();
5+
| ^^^ ----- function `errno` is not publicly re-exported
6+
| |
7+
| private module
88
|
9-
note: the module `thread_info` is defined here
10-
--> $SRC_DIR/std/src/thread/mod.rs:LL:COL
9+
note: the module `sys` is defined here
10+
--> $SRC_DIR/std/src/lib.rs:LL:COL
1111

1212
error: aborting due to 1 previous error
1313

0 commit comments

Comments
 (0)