mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
Add test
This commit is contained in:
parent
526a398c77
commit
652f2c753a
4
src/test/ui/stability-in-private-module.rs
Normal file
4
src/test/ui/stability-in-private-module.rs
Normal file
@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
let _ = std::thread::thread_info::current_thread();
|
||||
//~^ERROR module `thread_info` is private
|
||||
}
|
9
src/test/ui/stability-in-private-module.stderr
Normal file
9
src/test/ui/stability-in-private-module.stderr
Normal file
@ -0,0 +1,9 @@
|
||||
error[E0603]: module `thread_info` is private
|
||||
--> $DIR/stability-in-private-module.rs:2:26
|
||||
|
|
||||
LL | let _ = std::thread::thread_info::current_thread();
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0603`.
|
Loading…
Reference in New Issue
Block a user