diff options
| author | Obei Sideg <obei.sideg@gmail.com> | 2025-04-08 05:31:24 +0300 |
|---|---|---|
| committer | Obei Sideg <obei.sideg@gmail.com> | 2025-04-16 22:44:02 +0300 |
| commit | d17c04e4a220d6f7bf170eeb0f90498e215555fa (patch) | |
| tree | d006735275ed361d4df81f87d0cc50c2cc53dbcb /tests/ui/parser | |
| parent | 01cfa9aad5d8de34f968f41ef196e0cb0292a942 (diff) | |
| download | rust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.tar.gz rust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.zip | |
Add test for `extern` without explicit ABI
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/bad-lit-suffixes.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/parser/lit-err-in-macro.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/parser/bad-lit-suffixes.stderr b/tests/ui/parser/bad-lit-suffixes.stderr index d6b50b0e0d1..86ef35bf783 100644 --- a/tests/ui/parser/bad-lit-suffixes.stderr +++ b/tests/ui/parser/bad-lit-suffixes.stderr @@ -51,7 +51,7 @@ LL | #[rustc_layout_scalar_valid_range_start(0suffix)] | = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) -warning: extern declarations without an explicit ABI are deprecated +warning: `extern` declarations without an explicit ABI are deprecated --> $DIR/bad-lit-suffixes.rs:3:1 | LL | extern @@ -59,7 +59,7 @@ LL | extern | = note: `#[warn(missing_abi)]` on by default -warning: extern declarations without an explicit ABI are deprecated +warning: `extern` declarations without an explicit ABI are deprecated --> $DIR/bad-lit-suffixes.rs:7:1 | LL | extern diff --git a/tests/ui/parser/lit-err-in-macro.stderr b/tests/ui/parser/lit-err-in-macro.stderr index 9422f22f9c8..08fe58643d4 100644 --- a/tests/ui/parser/lit-err-in-macro.stderr +++ b/tests/ui/parser/lit-err-in-macro.stderr @@ -4,7 +4,7 @@ error: suffixes on string literals are invalid LL | f!("Foo"__); | ^^^^^^^ invalid suffix `__` -warning: extern declarations without an explicit ABI are deprecated +warning: `extern` declarations without an explicit ABI are deprecated --> $DIR/lit-err-in-macro.rs:3:9 | LL | extern $abi fn f() {} |
