Skip to content

Commit f2a6a4e

Browse files
committed
review comment
1 parent c8d9cd9 commit f2a6a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/libsyntax/parse/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ impl<'a> Parser<'a> {
800800
.span_label(
801801
extern_sp,
802802
"`extern` blocks define existing foreign functions and `fn`s \
803-
inside of them can't have a body")
803+
inside of them cannot have a body")
804804
.help("you might have meant to write a function accessible through ffi, \
805805
which can be done by writing `extern fn` outside of the \
806806
`extern` block")

Diff for: src/test/ui/extern/extern-ffi-fn-with-body.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: incorrect `fn` inside `extern` block
22
--> $DIR/extern-ffi-fn-with-body.rs:2:8
33
|
44
LL | extern "C" {
5-
| ------ `extern` blocks define existing foreign functions and `fn`s inside of them can't have a body
5+
| ------ `extern` blocks define existing foreign functions and `fn`s inside of them cannot have a body
66
LL | fn foo() -> i32 {
77
| ________^^^__________-
88
| | |

0 commit comments

Comments
 (0)