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;
|
2020-07-19 12:03:35 -05:00
|
|
|
//~^^ WARNING `error`
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
///
|
|
|
|
/// docs [error1]
|
2020-07-19 12:03:35 -05:00
|
|
|
//~^ WARNING `error1`
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
/// docs [error2]
|
|
|
|
///
|
|
|
|
pub struct B;
|
2020-07-19 12:03:35 -05:00
|
|
|
//~^^^ WARNING `error2`
|
2018-12-10 11:24:39 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a multi-line comment.
|
|
|
|
*
|
|
|
|
* It also has an [error].
|
|
|
|
*/
|
|
|
|
pub struct C;
|
2020-07-19 12:03:35 -05:00
|
|
|
//~^^^ WARNING `error`
|