about summary refs log tree commit diff
path: root/tests/ui/proc-macro
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2025-04-08 05:31:24 +0300
committerObei Sideg <obei.sideg@gmail.com>2025-04-16 22:44:02 +0300
commitd17c04e4a220d6f7bf170eeb0f90498e215555fa (patch)
treed006735275ed361d4df81f87d0cc50c2cc53dbcb /tests/ui/proc-macro
parent01cfa9aad5d8de34f968f41ef196e0cb0292a942 (diff)
downloadrust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.tar.gz
rust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.zip
Add test for `extern` without explicit ABI
Diffstat (limited to 'tests/ui/proc-macro')
-rw-r--r--tests/ui/proc-macro/inner-attrs.rs2
-rw-r--r--tests/ui/proc-macro/inner-attrs.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/proc-macro/inner-attrs.rs b/tests/ui/proc-macro/inner-attrs.rs
index c541e93f904..ca4b2029a33 100644
--- a/tests/ui/proc-macro/inner-attrs.rs
+++ b/tests/ui/proc-macro/inner-attrs.rs
@@ -82,7 +82,7 @@ fn bar() {
 }
 
 
-extern { //~ WARN extern declarations without an explicit ABI are deprecated
+extern { //~ WARN `extern` declarations without an explicit ABI are deprecated
     fn weird_extern() {
         #![print_target_and_args_consume(tenth)]
     }
diff --git a/tests/ui/proc-macro/inner-attrs.stderr b/tests/ui/proc-macro/inner-attrs.stderr
index 4e7825c0d00..54cccae8da0 100644
--- a/tests/ui/proc-macro/inner-attrs.stderr
+++ b/tests/ui/proc-macro/inner-attrs.stderr
@@ -22,7 +22,7 @@ error: expected non-macro inner attribute, found attribute macro `print_attr`
 LL |         #![print_attr]
    |            ^^^^^^^^^^ not a non-macro inner attribute
 
-warning: extern declarations without an explicit ABI are deprecated
+warning: `extern` declarations without an explicit ABI are deprecated
   --> $DIR/inner-attrs.rs:85:1
    |
 LL | extern {