File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
src/test/rustdoc-ui/suggestions Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,13 @@ pub struct NestedGenericsWithPunct;
7070//~^ ERROR unclosed HTML tag `i32`
7171//~|HELP try marking as source
7272pub struct NestedGenericsWithPunct2;
73+
74+ /// This [`Vec<i32>`] thing!
75+ //~^ERROR unclosed HTML tag `i32`
76+ //~|HELP try marking as source
77+ pub struct IntraDocLink;
78+
79+ /// This [`Vec::<i32>`] thing!
80+ //~^ERROR unclosed HTML tag `i32`
81+ //~|HELP try marking as source
82+ pub struct IntraDocLinkTurbofish;
Original file line number Diff line number Diff line change @@ -70,3 +70,13 @@ pub struct NestedGenericsWithPunct;
7070//~^ ERROR unclosed HTML tag `i32`
7171//~|HELP try marking as source
7272pub struct NestedGenericsWithPunct2 ;
73+
74+ /// This [Vec<i32>] thing!
75+ //~^ERROR unclosed HTML tag `i32`
76+ //~|HELP try marking as source
77+ pub struct IntraDocLink ;
78+
79+ /// This [Vec::<i32>] thing!
80+ //~^ERROR unclosed HTML tag `i32`
81+ //~|HELP try marking as source
82+ pub struct IntraDocLinkTurbofish ;
Original file line number Diff line number Diff line change @@ -157,5 +157,27 @@ help: try marking as source code
157157LL | /// Generics with punct `Vec<Vec<i32>>`!
158158 | + +
159159
160- error: aborting due to 14 previous errors
160+ error: unclosed HTML tag `i32`
161+ --> $DIR/html-as-generics.rs:74:14
162+ |
163+ LL | /// This [Vec<i32>] thing!
164+ | ^^^^^
165+ |
166+ help: try marking as source code
167+ |
168+ LL | /// This [`Vec<i32>`] thing!
169+ | + +
170+
171+ error: unclosed HTML tag `i32`
172+ --> $DIR/html-as-generics.rs:79:16
173+ |
174+ LL | /// This [Vec::<i32>] thing!
175+ | ^^^^^
176+ |
177+ help: try marking as source code
178+ |
179+ LL | /// This [`Vec::<i32>`] thing!
180+ | + +
181+
182+ error: aborting due to 16 previous errors
161183
You can’t perform that action at this time.
0 commit comments