diff options
Diffstat (limited to 'tests/ui/issues/issue-18389.rs')
| -rw-r--r-- | tests/ui/issues/issue-18389.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-18389.rs b/tests/ui/issues/issue-18389.rs index 654dfb63b88..3686afc48af 100644 --- a/tests/ui/issues/issue-18389.rs +++ b/tests/ui/issues/issue-18389.rs @@ -1,3 +1,9 @@ +#![warn(private_bounds)] + +// In this test both old and new private-in-public diagnostic were emitted. +// Old diagnostic will be deleted soon. +// See https://rust-lang.github.io/rfcs/2145-type-privacy.html. + use std::any::Any; use std::any::TypeId; |
