From c2694f15d05acd825883a992b390f54eda6f3696 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 22 Feb 2021 23:19:40 -0500 Subject: [PATCH] Fix compile failure due to 2015 module system being weird --- src/doc/rustdoc/src/linking-to-items-by-name.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/rustdoc/src/linking-to-items-by-name.md b/src/doc/rustdoc/src/linking-to-items-by-name.md index 0ca280221787b..6ca1d1153b494 100644 --- a/src/doc/rustdoc/src/linking-to-items-by-name.md +++ b/src/doc/rustdoc/src/linking-to-items-by-name.md @@ -109,7 +109,7 @@ Links are resolved in the scope of the module where the item is defined, even when the item is re-exported. If a link from another crate fails to resolve, no warning is given. -```rust +```rust,edition2018 mod inner { /// Link to [f()] pub struct S;