]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-12834.rs
Rollup merge of #107580 - lenko-d:default_value_for_a_lifetime_generic_parameter_prod...
[rust.git] / tests / 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() {}