1
Fork 0

rustdoc: move invalid langstring test to UI

This commit is contained in:
Michael Howell 2024-08-09 07:57:46 -07:00
parent 7c4150fce0
commit 1d19c2c009
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,12 @@
//@ compile-flags:--test
//@ check-pass
#![allow(rustdoc::invalid_codeblock_attributes)]
// https://github.com/rust-lang/rust/pull/124577#issuecomment-2276034737
// Test that invalid langstrings don't get run.
/// ```{rust,ignore}
/// panic!();
/// ```
pub struct Foo;

View file

@ -0,0 +1,5 @@
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s