We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e524d commit 4bae9e5Copy full SHA for 4bae9e5
src/libstd/keyword_docs.rs
@@ -1238,8 +1238,7 @@ mod unsafe_keyword {}
1238
/// Note that when the wildcard `*` is used on a type, it does not import its methods (though
1239
/// for `enum`s it imports the variants, as shown in the example below).
1240
///
1241
-/// ```compile_fail
1242
-/// # fn main() {
+/// ```compile_fail,edition2018
1243
/// enum ExampleEnum {
1244
/// VariantA,
1245
/// VariantB,
@@ -1258,7 +1257,6 @@ mod unsafe_keyword {}
1258
1257
1259
/// // Does not compile !
1260
/// let n = new();
1261
-/// # }
1262
/// ```
1263
1264
/// For more information on `use` and paths in general, see the [Reference].
0 commit comments