]> git.lizzy.rs Git - rust.git/commitdiff
Fix commas.
authorSteven Malis <smmalis37@gmail.com>
Sat, 25 Jul 2020 09:47:16 +0000 (02:47 -0700)
committerSteven Malis <smmalis37@gmail.com>
Sat, 25 Jul 2020 09:47:16 +0000 (02:47 -0700)
src/librustc_typeck/astconv.rs
src/test/ui/issues/issue-47511.stderr

index ccacd7a6aba6a177f18dd0636c0cd17d49da1be5..21b5f5c9033e614d48f9097c53eac9816f721561 100644 (file)
@@ -3080,7 +3080,7 @@ pub fn ty_of_fn(
                 tcx.sess,
                 decl.output.span(),
                 E0581,
-                "return type references {} which is not constrained by the fn input types",
+                "return type references {}, which is not constrained by the fn input types",
                 br_name
             )
         });
index 42f2cd1bb14017fa43d37f5ccd0b2b41d619a0ab..4473c0e68cfc8d803ef8525124de5e2b9b23ad92 100644 (file)
@@ -1,4 +1,4 @@
-error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types
+error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types
   --> $DIR/issue-47511.rs:5:15
    |
 LL | fn f(_: X) -> X {