File tree 2 files changed +10
-10
lines changed
tests/ui/stability-attribute
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
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
4
4
}
Original file line number Diff line number Diff line change 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
3
3
|
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
8
8
|
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
11
11
12
12
error: aborting due to 1 previous error
13
13
You can’t perform that action at this time.
0 commit comments