mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Fix ide-diagnostics test fixture
This commit is contained in:
parent
c0e402637e
commit
3fa0bf0dd3
2 changed files with 46 additions and 5 deletions
|
@ -157,6 +157,7 @@ struct S;
|
|||
fn macro_diag_builtin() {
|
||||
check_diagnostics(
|
||||
r#"
|
||||
//- minicore: fmt
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! env {}
|
||||
|
||||
|
@ -166,9 +167,6 @@ macro_rules! include {}
|
|||
#[rustc_builtin_macro]
|
||||
macro_rules! compile_error {}
|
||||
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! format_args { () => {} }
|
||||
|
||||
fn main() {
|
||||
// Test a handful of built-in (eager) macros:
|
||||
|
||||
|
@ -189,7 +187,7 @@ fn main() {
|
|||
// Lazy:
|
||||
|
||||
format_args!();
|
||||
//^^^^^^^^^^^ error: no rule matches input tokens
|
||||
//^^^^^^^^^^^ error: Syntax Error in Expansion: expected expression
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue