rust/tests/rustdoc/highlight-invalid-rust-12834.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
407 B
Rust
Raw Normal View History

// Tests that failing to syntax highlight a rust code-block doesn't cause
// rustdoc to fail, while still rendering the code-block (without highlighting).
2023-09-28 00:22:18 +00:00
// 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() {}