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