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/foreign | |
| parent | e7bd340ba41a327510f36eff96776aaba73f0f60 (diff) | |
| download | rust-585c9765a203df7cc7b497d848aae4ba979fcb39.tar.gz rust-585c9765a203df7cc7b497d848aae4ba979fcb39.zip | |
Update tests.
Diffstat (limited to 'tests/ui/foreign')
| -rw-r--r-- | tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs | 2 | ||||
| -rw-r--r-- | tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs index 2ac3ca29355..e8634de86ea 100644 --- a/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs +++ b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs @@ -1,6 +1,6 @@ // Regression test for issue #91370. -extern { +extern "C" { //~^ `extern` blocks define existing foreign functions fn f() { //~^ incorrect function inside `extern` block diff --git a/tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr index fea2ab61e92..155fdf9d09a 100644 --- a/tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr +++ b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr @@ -1,8 +1,8 @@ error: incorrect function inside `extern` block --> $DIR/issue-91370-foreign-fn-block-impl.rs:5:8 | -LL | extern { - | ------ `extern` blocks define existing foreign functions and functions inside of them cannot have a body +LL | extern "C" { + | ---------- `extern` blocks define existing foreign functions and functions inside of them cannot have a body LL | LL | fn f() { | ________^___- |
