Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index 91d29a96bf..d5018f2327 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs @@ -469,7 +469,10 @@ mod panic { } #[rustc_builtin_macro(std_panic)] +#[macro_export] macro_rules! panic {} +#[rustc_builtin_macro] +macro_rules! assert {} fn main() { // from https://doc.rust-lang.org/std/fmt/index.html @@ -522,6 +525,8 @@ fn main() { println!("{:x?} {} ", thingy, n2); panic!("{}", 0); panic!("more {}", 1); + assert!(true, "{}", 1); + assert!(true, "{} asdasd", 1); }"# .trim(), expect_file!["./test_data/highlight_strings.html"], |