File tree 2 files changed +0
-45
lines changed
doc/unstable-book/src/language-features
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
20
20
implementation-specific types and traits were not included in the standard library's documentation.
21
21
Such types would introduce broken links into the documentation.
22
22
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
-
39
23
[ #44026 ] : https://github.com/rust-lang/rust/pull/44026
40
24
[ #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