]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in multiple lifetimes error
authorTaylor Cramer <cramertj@google.com>
Mon, 18 Jun 2018 23:57:14 +0000 (16:57 -0700)
committerTaylor Cramer <cramertj@google.com>
Fri, 22 Jun 2018 05:37:17 +0000 (22:37 -0700)
src/librustc/hir/lowering.rs

index d0e6a5e2973d4e9a3db41d5cb0cc8a534f27495c..2deb0b53e6bb5d37f58afb35b6719b40e3084896 100644 (file)
@@ -2053,7 +2053,7 @@ fn visit_lifetime(&mut self, lifetime: &'v hir::Lifetime) {
                                 .span_label(current_lt_span, "first lifetime here")
                                 .span_label(lifetime.span, "different lifetime here")
                                 .help("`async fn` can only accept borrowed values \
-                                      identical lifetimes")
+                                      with identical lifetimes")
                                 .emit()
                         } else if current_lt_name.is_elided() && name.is_elided() {
                             struct_span_err!(