diff options
| author | Igor Sadikov <igorsadikov@gmail.com> | 2019-02-05 15:21:03 -0500 |
|---|---|---|
| committer | Igor Sadikov <igorsadikov@gmail.com> | 2019-02-07 16:13:19 -0500 |
| commit | f753d304c6c5d7f2c10147d783d58db7db4ffc4c (patch) | |
| tree | 7c8babd0eee8633b80a001c2eac89a1decea5181 /src/test/ui/parser | |
| parent | d1731801163df1d3a8d4ddfa68adac2ec833ef7f (diff) | |
| download | rust-f753d304c6c5d7f2c10147d783d58db7db4ffc4c.tar.gz rust-f753d304c6c5d7f2c10147d783d58db7db4ffc4c.zip | |
Suggest removing parentheses surrounding lifetimes
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/trait-object-lifetime-parens.stderr | 8 |
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 |
