diff options
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/body/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir_def/src/body/tests.rs b/crates/hir_def/src/body/tests.rs index c7003f2a6..7e78340ee 100644 --- a/crates/hir_def/src/body/tests.rs +++ b/crates/hir_def/src/body/tests.rs | |||
@@ -85,6 +85,9 @@ macro_rules! env {} | |||
85 | macro_rules! include {} | 85 | macro_rules! include {} |
86 | 86 | ||
87 | #[rustc_builtin_macro] | 87 | #[rustc_builtin_macro] |
88 | macro_rules! compile_error {} | ||
89 | |||
90 | #[rustc_builtin_macro] | ||
88 | macro_rules! format_args { | 91 | macro_rules! format_args { |
89 | () => {} | 92 | () => {} |
90 | } | 93 | } |
@@ -103,6 +106,9 @@ fn f() { | |||
103 | env!("OUT_DIR"); | 106 | env!("OUT_DIR"); |
104 | //^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix | 107 | //^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix |
105 | 108 | ||
109 | compile_error!("compile_error works"); | ||
110 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `compile_error!` called: compile_error works | ||
111 | |||
106 | // Lazy: | 112 | // Lazy: |
107 | 113 | ||
108 | format_args!(); | 114 | format_args!(); |