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/feature-gates/feature-gate-explicit-extern-abis.future.stderr | |
| parent | 01cfa9aad5d8de34f968f41ef196e0cb0292a942 (diff) | |
| download | rust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.tar.gz rust-d17c04e4a220d6f7bf170eeb0f90498e215555fa.zip | |
Add test for `extern` without explicit ABI
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-explicit-extern-abis.future.stderr')
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-explicit-extern-abis.future.stderr | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-explicit-extern-abis.future.stderr b/tests/ui/feature-gates/feature-gate-explicit-extern-abis.future.stderr new file mode 100644 index 00000000000..cf927807c7c --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-explicit-extern-abis.future.stderr @@ -0,0 +1,22 @@ +warning: `extern` declarations without an explicit ABI are deprecated + --> $DIR/feature-gate-explicit-extern-abis.rs:27:1 + | +LL | extern fn _foo() {} + | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` + | + = note: `#[warn(missing_abi)]` on by default + +warning: `extern` declarations without an explicit ABI are deprecated + --> $DIR/feature-gate-explicit-extern-abis.rs:33:8 + | +LL | unsafe extern fn _bar() {} + | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` + +warning: `extern` declarations without an explicit ABI are deprecated + --> $DIR/feature-gate-explicit-extern-abis.rs:39:8 + | +LL | unsafe extern {} + | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` + +warning: 3 warnings emitted + |
