]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/parse/trait-path-segments.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / parse / trait-path-segments.stderr
1 error: expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, or `>`, found `=`
2 --> $DIR/trait-path-segments.rs:6:36
3 |
4 LL | fn f1<'a>(arg : Box<dyn X<X::Y = u32>>) {}
5 | - ^ expected one of 8 possible tokens
6 | |
7 | maybe try to close unmatched angle bracket
8 |
9 help: you might have meant to end the type parameters here
10 |
11 LL | fn f1<'a>(arg : Box<dyn X<X::Y> = u32>>) {}
12 | +
13
14 error: expected one of `,`, `::`, `:`, or `>`, found `=`
15 --> $DIR/trait-path-segments.rs:17:35
16 |
17 LL | impl<T : X<<Self as X>::Y<'a> = &'a u32>> Z for T {}
18 | - ^ expected one of `,`, `::`, `:`, or `>`
19 | |
20 | maybe try to close unmatched angle bracket
21 |
22 help: you might have meant to end the type parameters here
23 |
24 LL | impl<T : X<<Self as X>::Y<'a>> = &'a u32>> Z for T {}
25 | +
26
27 error: expected one of `!`, `+`, `,`, `::`, `:`, or `>`, found `=`
28 --> $DIR/trait-path-segments.rs:28:25
29 |
30 LL | impl<T : X<X::Y<'a> = &'a u32>> Z for T {}
31 | - ^ expected one of `!`, `+`, `,`, `::`, `:`, or `>`
32 | |
33 | maybe try to close unmatched angle bracket
34 |
35 help: you might have meant to end the type parameters here
36 |
37 LL | impl<T : X<X::Y<'a>> = &'a u32>> Z for T {}
38 | +
39
40 error: aborting due to 3 previous errors
41