summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-22 14:57:59 +0100
committerGitHub <noreply@github.com>2019-02-22 14:57:59 +0100
commit894141b57d5a0072eee07a4918db32bfc187e5bb (patch)
treec4d035a6888bf9969e1e22c69a821faa1f7557fc /src/test
parent70cc6c980cb4540d05a628f492d365ae422fa22f (diff)
parentf753d304c6c5d7f2c10147d783d58db7db4ffc4c (diff)
downloadrust-894141b57d5a0072eee07a4918db32bfc187e5bb.tar.gz
rust-894141b57d5a0072eee07a4918db32bfc187e5bb.zip
Rollup merge of #58198 - igorsdv:suggest-removing-parentheses-surrounding-lifetimes, r=estebank
Suggest removing parentheses surrounding lifetimes

Fixes #57386.

r? @estebank
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/parser/trait-object-lifetime-parens.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/parser/trait-object-lifetime-parens.stderr b/src/test/ui/parser/trait-object-lifetime-parens.stderr
index a9b542ddcc4..94ca66aef72 100644
--- a/src/test/ui/parser/trait-object-lifetime-parens.stderr
+++ b/src/test/ui/parser/trait-object-lifetime-parens.stderr
@@ -1,14 +1,14 @@
 error: parenthesized lifetime bounds are not supported
-  --> $DIR/trait-object-lifetime-parens.rs:5:24
+  --> $DIR/trait-object-lifetime-parens.rs:5:21
    |
 LL | fn f<'a, T: Trait + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
-   |                        ^
+   |                     ^^^^ help: remove the parentheses
 
 error: parenthesized lifetime bounds are not supported
-  --> $DIR/trait-object-lifetime-parens.rs:8:27
+  --> $DIR/trait-object-lifetime-parens.rs:8:24
    |
 LL |     let _: Box<Trait + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
-   |                           ^
+   |                        ^^^^ help: remove the parentheses
 
 error: expected type, found `'a`
   --> $DIR/trait-object-lifetime-parens.rs:9:17