]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-link-span-ice-55723.rs
Use check-pass mode for nll tests
[rust.git] / src / test / rustdoc-ui / intra-link-span-ice-55723.rs
1 #![deny(intra_doc_link_resolution_failure)]
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]` cannot be resolved, ignoring it.
11 pub fn test_ice() {
12     unimplemented!();
13 }