2018-12-10 11:24:39 -06:00
|
|
|
// ignore-tidy-cr
|
2020-04-19 18:40:53 -05:00
|
|
|
// check-pass
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
// This file checks the spans of intra-link warnings in a file with CRLF line endings. The
|
|
|
|
// .gitattributes file in this directory should enforce it.
|
|
|
|
|
|
|
|
/// [error]
|
|
|
|
pub struct A;
|
2019-11-07 18:00:00 -06:00
|
|
|
//~^^ WARNING `[error]` cannot be resolved
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
///
|
|
|
|
/// docs [error1]
|
2019-11-07 18:00:00 -06:00
|
|
|
//~^ WARNING `[error1]` cannot be resolved
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
/// docs [error2]
|
|
|
|
///
|
|
|
|
pub struct B;
|
2019-11-07 18:00:00 -06:00
|
|
|
//~^^^ WARNING `[error2]` cannot be resolved
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a multi-line comment.
|
|
|
|
*
|
|
|
|
* It also has an [error].
|
|
|
|
*/
|
|
|
|
pub struct C;
|
2019-11-07 18:00:00 -06:00
|
|
|
//~^^^ WARNING `[error]` cannot be resolved
|