fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
829 B28 linesraw
1error: parenthesized lifetime bounds are not supported
2  --> $DIR/trait-object-lifetime-parens.rs:5:21
3   |
4LL | fn f<'a, T: Trait + ('a)>() {}
5   |                     ^^^^ help: remove the parentheses
6
7error: parenthesized lifetime bounds are not supported
8  --> $DIR/trait-object-lifetime-parens.rs:8:24
9   |
10LL |     let _: Box<Trait + ('a)>;
11   |                        ^^^^ help: remove the parentheses
12
13error: expected `:`, found `)`
14  --> $DIR/trait-object-lifetime-parens.rs:9:19
15   |
16LL |     let _: Box<('a) + Trait>;
17   |                   ^ expected `:`
18
19error: expected type, found `'a`
20  --> $DIR/trait-object-lifetime-parens.rs:9:17
21   |
22LL |     let _: Box<('a) + Trait>;
23   |         -       ^^ expected type
24   |         |
25   |         while parsing the type for `_`
26
27error: aborting due to 4 previous errors
28