refer to a different module in UI test

This commit is contained in:
joboet 2024-03-31 15:38:22 +02:00
parent 7668418101
commit 41434ff4a3
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C
2 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
fn main() {
let _ = std::thread::thread_info::current_thread();
//~^ERROR module `thread_info` is private
let _ = std::sys::os::errno();
//~^ERROR module `sys` is private
}

View File

@ -1,13 +1,13 @@
error[E0603]: module `thread_info` is private
--> $DIR/stability-in-private-module.rs:2:26
error[E0603]: module `sys` is private
--> $DIR/stability-in-private-module.rs:2:18
|
LL | let _ = std::thread::thread_info::current_thread();
| ^^^^^^^^^^^ -------------- function `current_thread` is not publicly re-exported
LL | let _ = std::sys::os::errno();
| ^^^ ----- function `errno` is not publicly re-exported
| |
| private module
|
note: the module `thread_info` is defined here
--> $SRC_DIR/std/src/thread/mod.rs:LL:COL
note: the module `sys` is defined here
--> $SRC_DIR/std/src/lib.rs:LL:COL
error: aborting due to 1 previous error