diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-01 17:12:52 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-01-13 07:49:16 -0500 |
| commit | 8a3edb1d661ed5ce685bd5dcfa600b6e02897b86 (patch) | |
| tree | 5615826fc30a674b49dcc89fc09ff84a1fced008 /src/test/ui/static | |
| parent | c4a8d7f86a5d54a2f3b3875e703d06acd12ae7cc (diff) | |
| download | rust-8a3edb1d661ed5ce685bd5dcfa600b6e02897b86.tar.gz rust-8a3edb1d661ed5ce685bd5dcfa600b6e02897b86.zip | |
Update tests for extern block linting
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/static-mut-foreign-requires-unsafe.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/static/static-mut-foreign-requires-unsafe.rs b/src/test/ui/static/static-mut-foreign-requires-unsafe.rs index 535f6bc3226..90aa2537a82 100644 --- a/src/test/ui/static/static-mut-foreign-requires-unsafe.rs +++ b/src/test/ui/static/static-mut-foreign-requires-unsafe.rs @@ -1,9 +1,9 @@ -extern { +extern "C" { static mut a: i32; } fn main() { - a += 3; //~ ERROR: requires unsafe - a = 4; //~ ERROR: requires unsafe + a += 3; //~ ERROR: requires unsafe + a = 4; //~ ERROR: requires unsafe let _b = a; //~ ERROR: requires unsafe } |
