File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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> {
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")
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: incorrect `fn` inside `extern` block
22 --> $DIR/extern-ffi-fn-with-body.rs:2:8
33 |
44LL | 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
66LL | fn foo() -> i32 {
77 | ________^^^__________-
88 | | |
You can’t perform that action at this time.
0 commit comments