rustdoc: move invalid langstring test to UI
This commit is contained in:
parent
7c4150fce0
commit
1d19c2c009
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue