diff options
Diffstat (limited to 'src/test/ui/rustdoc/feature-gate-doc_primitive.rs')
-rw-r--r-- | src/test/ui/rustdoc/feature-gate-doc_primitive.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/rustdoc/feature-gate-doc_primitive.rs b/src/test/ui/rustdoc/feature-gate-doc_primitive.rs new file mode 100644 index 000000000..18e99e72f --- /dev/null +++ b/src/test/ui/rustdoc/feature-gate-doc_primitive.rs @@ -0,0 +1,8 @@ +// check-pass +#[doc(primitive = "usize")] +//~^ WARNING `doc(primitive)` should never have been stable +//~| WARNING hard error in a future release +/// Some docs +mod usize {} + +fn main() {} |