diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2024-10-31 11:39:45 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-01-07 16:04:14 +0100 |
| commit | 585c9765a203df7cc7b497d848aae4ba979fcb39 (patch) | |
| tree | 943e153ace484e7a949d86ecce717a534c8f1847 /tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs | |
| parent | e7bd340ba41a327510f36eff96776aaba73f0f60 (diff) | |
| download | rust-585c9765a203df7cc7b497d848aae4ba979fcb39.tar.gz rust-585c9765a203df7cc7b497d848aae4ba979fcb39.zip | |
Update tests.
Diffstat (limited to 'tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs')
| -rw-r--r-- | tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs b/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs index 03e122c7d57..34e5a6b96e3 100644 --- a/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs +++ b/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes-fix.rs @@ -4,7 +4,7 @@ macro_rules! tt { ($e:tt) => { #$e - extern fn foo() {} + extern "C" fn foo() {} } } @@ -13,7 +13,7 @@ macro_rules! ident { #[$e] //~^ ERROR: unsafe attribute used without unsafe //~| WARN this is accepted in the current edition - extern fn bar() {} + extern "C" fn bar() {} } } @@ -22,21 +22,21 @@ macro_rules! ident2 { #[$e = $l] //~^ ERROR: unsafe attribute used without unsafe //~| WARN this is accepted in the current edition - extern fn bars() {} + extern "C" fn bars() {} } } macro_rules! meta { ($m:meta) => { #[$m] - extern fn baz() {} + extern "C" fn baz() {} } } macro_rules! meta2 { ($m:meta) => { #[$m] - extern fn baw() {} + extern "C" fn baw() {} } } |
