fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
627 B20 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: lifetime in trait object type must be followed by `+`
14  --> $DIR/trait-object-lifetime-parens.rs:10:17
15   |
16LL |     let _: Box<('a) + Trait>;
17   |                 ^^
18
19error: aborting due to 3 previous errors
20