Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ishitatsuyuki committed Feb 4, 2019
1 parent 526a398 commit 652f2c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/ui/stability-in-private-module.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
let _ = std::thread::thread_info::current_thread();
//~^ERROR module `thread_info` is private
}
9 changes: 9 additions & 0 deletions src/test/ui/stability-in-private-module.stderr
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 652f2c7

Please sign in to comment.