]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-12834.rs
Suggest defining type parameter when appropriate
[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
5 // @has issue_12834/fn.foo.html
6 // @has - //pre 'a + b '
7
8 /// ```
9 /// a + b ∈ Self ∀ a, b ∈ Self
10 /// ```
11 pub fn foo() {}