Skip to content

Commit

Permalink
Remove the fn main() in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed May 30, 2020
1 parent b0e524d commit 4bae9e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libstd/keyword_docs.rs
Expand Up @@ -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,
Expand All @@ -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].
Expand Down

0 comments on commit 4bae9e5

Please sign in to comment.