mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
407 B
Rust
15 lines
407 B
Rust
// Tests that failing to syntax highlight a rust code-block doesn't cause
|
|
// rustdoc to fail, while still rendering the code-block (without highlighting).
|
|
// https://github.com/rust-lang/rust/issues/12834
|
|
|
|
#![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() {}
|