File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -800,7 +800,7 @@ impl<'a> Parser<'a> {
800
800
. span_label (
801
801
extern_sp,
802
802
"`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")
804
804
. help ( "you might have meant to write a function accessible through ffi, \
805
805
which can be done by writing `extern fn` outside of the \
806
806
`extern` block")
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: incorrect `fn` inside `extern` block
2
2
--> $DIR/extern-ffi-fn-with-body.rs:2:8
3
3
|
4
4
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
6
6
LL | fn foo() -> i32 {
7
7
| ________^^^__________-
8
8
| | |
You can’t perform that action at this time.
0 commit comments