]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-12834.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / rustdoc / issue-12834.rs
1 // Tests that failing to syntax highlight a rust code-block doesn't cause
2 // rustdoc to fail, while still rendering the code-block (without highlighting).
3
4 #![allow(rustdoc::invalid_rust_codeblocks)]
5
6 // @has issue_12834/fn.foo.html
7 // @has - //pre 'a + b '
8
9 /// ```
10 /// a + b ∈ Self ∀ a, b ∈ Self
11 /// ```
12 pub fn foo() {}