]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-doc/span-ice-55723.rs
Rollup merge of #98229 - GuillaumeGomez:eslint-checks, r=Dylan-DPC
[rust.git] / src / test / rustdoc-ui / intra-doc / span-ice-55723.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
2
3 // An error in calculating spans while reporting intra-doc link resolution errors caused rustdoc to
4 // attempt to slice in the middle of a multibyte character. See
5 // https://github.com/rust-lang/rust/issues/55723
6
7 /// ## For example:
8 ///
9 /// (arr[i])
10 //~^ ERROR `i`
11 pub fn test_ice() {
12     unimplemented!();
13 }