Files
rust/tests/ui/frontmatter/include-in-expr-ctxt.rs
León Orell Valerian Liehr 7a66925a81 Strip frontmatter in fewer places
2025-09-09 19:49:40 +02:00

10 lines
316 B
Rust

// Check that an expr-ctxt `include` doesn't try to parse frontmatter and instead
// treats it as a regular Rust token sequence.
//@ check-pass
#![expect(double_negations)]
fn main() {
// issue: <https://github.com/rust-lang/rust/issues/145945>
const _: () = assert!(-1 == include!("auxiliary/expr.rs"));
}