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