]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-links-warning-crlf.rs
Rollup merge of #69031 - Centril:dyntest, r=eddyb
[rust.git] / src / test / rustdoc-ui / intra-links-warning-crlf.rs
1 // ignore-tidy-cr
2 // build-pass
3
4 // This file checks the spans of intra-link warnings in a file with CRLF line endings. The
5 // .gitattributes file in this directory should enforce it.
6
7 /// [error]
8 pub struct A;
9 //~^^ WARNING `[error]` cannot be resolved
10
11 ///
12 /// docs [error1]
13 //~^ WARNING `[error1]` cannot be resolved
14
15 /// docs [error2]
16 ///
17 pub struct B;
18 //~^^^ WARNING `[error2]` cannot be resolved
19
20 /**
21  * This is a multi-line comment.
22  *
23  * It also has an [error].
24  */
25 pub struct C;
26 //~^^^ WARNING `[error]` cannot be resolved