rust/tests/rustdoc-ui/doctest/doctest-no-run-invalid-langstring-124577.rs

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

14 lines
342 B
Rust
Raw Normal View History

//@ compile-flags:--test
2025-01-19 16:39:37 +00:00
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ 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;