]> git.lizzy.rs Git - rust.git/commitdiff
review comment
authorEsteban Küber <esteban@kuber.com.ar>
Sun, 14 Jul 2019 05:25:23 +0000 (22:25 -0700)
committerEsteban Küber <esteban@kuber.com.ar>
Sun, 14 Jul 2019 05:25:23 +0000 (22:25 -0700)
src/libsyntax/parse/diagnostics.rs
src/test/ui/extern/extern-ffi-fn-with-body.stderr

index de392d6bb810991316b2f625c85269d829f00aea..676c87f9daa3d413e36b24167f59aa7cd4d55c03 100644 (file)
@@ -800,7 +800,7 @@ pub fn unexpected_try_recover(
                         .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")
index 02d1ee5a7534ba893dac7043b6b4cf365f347dce..4ac3ce1f93eabd9ef87883d495f35288f9869a27 100644 (file)
@@ -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 {
    |  ________^^^__________-
    | |        |