diff options
| author | Poliorcetics <poliorcetics@users.noreply.github.com> | 2020-05-30 19:18:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 19:18:05 +0200 |
| commit | 4bae9e59373e2ef405ea2601822137bd72122ef6 (patch) | |
| tree | 3d36df09dd41c973d2498a7947427f55a3eab351 /src/libstd | |
| parent | b0e524d444ea1a060b248b7ffedd48693f14285b (diff) | |
| download | rust-4bae9e59373e2ef405ea2601822137bd72122ef6.tar.gz rust-4bae9e59373e2ef405ea2601822137bd72122ef6.zip | |
Remove the fn main() in code example
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/keyword_docs.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs index a957bcf215f..a4996d9eee8 100644 --- a/src/libstd/keyword_docs.rs +++ b/src/libstd/keyword_docs.rs @@ -1238,8 +1238,7 @@ mod unsafe_keyword {} /// Note that when the wildcard `*` is used on a type, it does not import its methods (though /// for `enum`s it imports the variants, as shown in the example below). /// -/// ```compile_fail -/// # fn main() { +/// ```compile_fail,edition2018 /// enum ExampleEnum { /// VariantA, /// VariantB, @@ -1258,7 +1257,6 @@ mod unsafe_keyword {} /// /// // Does not compile ! /// let n = new(); -/// # } /// ``` /// /// For more information on `use` and paths in general, see the [Reference]. |
