about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-07-13 22:25:23 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-07-13 22:25:23 -0700
commitf2a6a4e5afbe61cded2793e55f821e14c6708c78 (patch)
treef7ab853caebb3d666d7fc7167cba6bb4d914a904 /src
parentc8d9cd99fa2f389a69c0c42de9945f46977b11d7 (diff)
downloadrust-f2a6a4e5afbe61cded2793e55f821e14c6708c78.tar.gz
rust-f2a6a4e5afbe61cded2793e55f821e14c6708c78.zip
review comment
Diffstat (limited to 'src')
-rw-r--r--src/libsyntax/parse/diagnostics.rs2
-rw-r--r--src/test/ui/extern/extern-ffi-fn-with-body.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs
index de392d6bb81..676c87f9daa 100644
--- a/src/libsyntax/parse/diagnostics.rs
+++ b/src/libsyntax/parse/diagnostics.rs
@@ -800,7 +800,7 @@ impl<'a> Parser<'a> {
                         .span_label(
                             extern_sp,
                             "`extern` blocks define existing foreign functions and `fn`s \
-                             inside of them can't have a body")
+                             inside of them cannot have a body")
                         .help("you might have meant to write a function accessible through ffi, \
                                which can be done by writing `extern fn` outside of the \
                                `extern` block")
diff --git a/src/test/ui/extern/extern-ffi-fn-with-body.stderr b/src/test/ui/extern/extern-ffi-fn-with-body.stderr
index 02d1ee5a753..4ac3ce1f93e 100644
--- a/src/test/ui/extern/extern-ffi-fn-with-body.stderr
+++ b/src/test/ui/extern/extern-ffi-fn-with-body.stderr
@@ -2,7 +2,7 @@ error: incorrect `fn` inside `extern` block
   --> $DIR/extern-ffi-fn-with-body.rs:2:8
    |
 LL |   extern "C" {
-   |   ------ `extern` blocks define existing foreign functions and `fn`s inside of them can't have a body
+   |   ------ `extern` blocks define existing foreign functions and `fn`s inside of them cannot have a body
 LL |       fn foo() -> i32 {
    |  ________^^^__________-
    | |        |