2016-04-25 17:20:32 +02:00
|
|
|
// 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-27 17:22:18 -07:00
|
|
|
// https://github.com/rust-lang/rust/issues/12834
|
2016-04-25 17:20:32 +02:00
|
|
|
|
2023-09-27 16:51:21 -07:00
|
|
|
#![crate_name="issue_12834"]
|
2021-11-26 15:03:16 -08:00
|
|
|
#![allow(rustdoc::invalid_rust_codeblocks)]
|
2016-04-25 17:20:32 +02:00
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has issue_12834/fn.foo.html
|
|
|
|
//@ has - //pre 'a + b '
|
2016-04-25 17:20:32 +02:00
|
|
|
|
|
|
|
/// ```
|
|
|
|
/// a + b ∈ Self ∀ a, b ∈ Self
|
|
|
|
/// ```
|
|
|
|
pub fn foo() {}
|