Files
rust/tests/ui/frontmatter/include-in-expr-ctxt.rs

10 lines
316 B
Rust
Raw Normal View History

2025-09-08 19:25:22 +02:00
// 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"));
}