about summary refs log tree commit diff
path: root/tests/rustdoc/issue-12834.rs
blob: 7bc5f682c5abf24f0dcf7b26fc830cb6c33bc2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Tests that failing to syntax highlight a rust code-block doesn't cause
// rustdoc to fail, while still rendering the code-block (without highlighting).

#![crate_name="issue_12834"]
#![allow(rustdoc::invalid_rust_codeblocks)]

// @has issue_12834/fn.foo.html
// @has - //pre 'a + b '

/// ```
/// a + b ∈ Self ∀ a, b ∈ Self
/// ```
pub fn foo() {}