]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trait-object-lifetime-parens.stderr
Auto merge of #62908 - fakenine:normalize_use_of_backticks_compiler_messages_p17...
[rust.git] / src / test / ui / parser / trait-object-lifetime-parens.stderr
1 error: parenthesized lifetime bounds are not supported
2   --> $DIR/trait-object-lifetime-parens.rs:5:21
3    |
4 LL | fn f<'a, T: Trait + ('a)>() {}
5    |                     ^^^^ help: remove the parentheses
6
7 error: parenthesized lifetime bounds are not supported
8   --> $DIR/trait-object-lifetime-parens.rs:8:24
9    |
10 LL |     let _: Box<Trait + ('a)>;
11    |                        ^^^^ help: remove the parentheses
12
13 error: expected `:`, found `)`
14   --> $DIR/trait-object-lifetime-parens.rs:9:19
15    |
16 LL |     let _: Box<('a) + Trait>;
17    |                   ^ expected `:`
18
19 error: chained comparison operators require parentheses
20   --> $DIR/trait-object-lifetime-parens.rs:9:15
21    |
22 LL |     let _: Box<('a) + Trait>;
23    |               ^^^^^^^^^^^^^^^
24    |
25    = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
26    = help: or use `(...)` if you meant to specify fn arguments
27
28 error: expected type, found `'a`
29   --> $DIR/trait-object-lifetime-parens.rs:9:17
30    |
31 LL |     let _: Box<('a) + Trait>;
32    |         -       ^^ expected type
33    |         |
34    |         while parsing the type for `_`
35
36 error: aborting due to 5 previous errors
37