rust/src/test/rustdoc-ui/intra-doc/span-ice-55723.rs

14 lines
358 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#![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!();
}