mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
13 lines
404 B
Rust
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);
|
|
}
|