rust/tests/ui/rust-2024/reserved-guarded-strings-via-macro.rs
2024-10-08 18:21:16 -06:00

13 lines
404 B
Rust

//@ run-pass
//@ compile-flags: -Zunstable-options
//@ edition:2024
//@ aux-build:reserved-guarded-strings-macro-2021.rs
extern crate reserved_guarded_strings_macro_2021 as m2021;
fn main() {
// Ok, even though *this* crate is 2024:
assert_eq!(m2021::number_of_tokens_in_a_guarded_string_literal!(), 3);
assert_eq!(m2021::number_of_tokens_in_a_guarded_unterminated_string_literal!(), 2);
}