]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-101743-bold-tag.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / rustdoc / issue-101743-bold-tag.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/101743
2
3 #![crate_name="foo"]
4
5 pub type Word = usize;
6 pub struct Repr<const B: usize>([i32; B]);
7 pub struct IBig(usize);
8
9 pub const fn base_as_ibig<const B: Word>() -> IBig {
10     IBig(B)
11 }
12
13 impl<const B: Word> Repr<B> {
14     // If we change back to rendering the value of consts, check this doesn't add
15     // a <b> tag, but escapes correctly
16
17     // @has foo/struct.Repr.html '//section[@id="associatedconstant.BASE"]/h4' '= _'
18     pub const BASE: IBig = base_as_ibig::<B>();
19 }