]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-link-span-ice-55723.rs
5891a553e3255f7e982a98c73b8be54810d05d88
[rust.git] / src / test / rustdoc-ui / intra-link-span-ice-55723.rs
1 // ignore-tidy-end-whitespace
2
3 #![deny(intra_doc_link_resolution_failure)]
4
5 // An error in calculating spans while reporting intra-doc link resolution errors caused rustdoc to
6 // attempt to slice in the middle of a multibyte character. See
7 // https://github.com/rust-lang/rust/issues/55723
8
9 /// ## For example:
10 ///
11 /// (arr[i])
12 //~^ ERROR `[i]` cannot be resolved, ignoring it...
13 pub fn test_ice() {
14     unimplemented!();
15 }