diff options
Diffstat (limited to 'tests/ui/stability-attribute/stability-in-private-module.rs')
-rw-r--r-- | tests/ui/stability-attribute/stability-in-private-module.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/stability-attribute/stability-in-private-module.rs b/tests/ui/stability-attribute/stability-in-private-module.rs new file mode 100644 index 000000000..f12e9198b --- /dev/null +++ b/tests/ui/stability-attribute/stability-in-private-module.rs @@ -0,0 +1,4 @@ +fn main() { + let _ = std::thread::thread_info::current_thread(); + //~^ERROR module `thread_info` is private +} |