summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/intra-doc/span-ice-55723.rs
blob: 041ec293259233d535f182b521a8b1843ae9e478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![deny(rustdoc::broken_intra_doc_links)]

// An error in calculating spans while reporting intra-doc link resolution errors caused rustdoc to
// attempt to slice in the middle of a multibyte character. See
// https://github.com/rust-lang/rust/issues/55723

/// ## For example:
///
/// (arr[i])
//~^ ERROR `i`
pub fn test_ice() {
    unimplemented!();
}