File tree Expand file tree Collapse file tree 2 files changed +0
-45
lines changed
doc/unstable-book/src/language-features Expand file tree Collapse file tree 2 files changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,5 @@ This feature was introduced in PR [#44026] to ensure that compiler-internal and
2020implementation-specific types and traits were not included in the standard library's documentation.
2121Such types would introduce broken links into the documentation.
2222
23- ``` rust
24- #![feature(doc_masked)]
25-
26- // Since std is automatically imported, we need to import it into a separate name to apply the
27- // attribute. This is used as a simple demonstration, but any extern crate statement will suffice.
28- #[doc(masked)]
29- extern crate std as realstd;
30-
31- /// A sample marker trait that exists on floating-point numbers, even though this page won't list
32- /// them!
33- pub trait MyMarker { }
34-
35- impl MyMarker for f32 { }
36- impl MyMarker for f64 { }
37- ```
38-
3923[ #44026 ] : https://github.com/rust-lang/rust/pull/44026
4024[ #44027 ] : https://github.com/rust-lang/rust/pull/44027
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments