]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/feature-gate-rustc-diagnostic-macros.rs
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / compile-fail / feature-gate-rustc-diagnostic-macros.rs
index 8286d833e8d22cd2000af6243629feee8c87df95..bbdf248780f3397c473f9e59d267e7e3590ba8ce 100644 (file)
 // gate
 
 __register_diagnostic!(E0001);
-//~^ ERROR macro undefined: '__register_diagnostic!'
+//~^ ERROR cannot find macro `__register_diagnostic!` in this scope
 
 fn main() {
     __diagnostic_used!(E0001);
-    //~^ ERROR macro undefined: '__diagnostic_used!'
+    //~^ ERROR cannot find macro `__diagnostic_used!` in this scope
 }
 
 __build_diagnostic_array!(DIAGNOSTICS);
-//~^ ERROR macro undefined: '__build_diagnostic_array!'
+//~^ ERROR cannot find macro `__build_diagnostic_array!` in this scope