|
1 | | -error: paths with multiple segments cannot be used in associated type constraints |
2 | | - --> $DIR/trait-path-segments.rs:9:31 |
| 1 | +error: expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, or `>`, found `=` |
| 2 | + --> $DIR/trait-path-segments.rs:9:36 |
3 | 3 | | |
4 | 4 | LL | fn f1<'a>(arg : Box<dyn X<X::Y = u32>>) {} |
5 | | - | ^^^^ |
| 5 | + | - ^ expected one of 8 possible tokens |
| 6 | + | | |
| 7 | + | maybe try to close unmatched angle bracket |
6 | 8 |
|
7 | | -error: qualified paths cannot be used in associated type constraints |
8 | | - --> $DIR/trait-path-segments.rs:20:16 |
| 9 | +error: expected one of `,`, `::`, `:`, or `>`, found `=` |
| 10 | + --> $DIR/trait-path-segments.rs:20:35 |
9 | 11 | | |
10 | 12 | LL | impl<T : X<<Self as X>::Y<'a> = &'a u32>> Z for T {} |
11 | | - | ^^^^^^^^^-^^^^^^^^ |
12 | | - | | |
13 | | - | not allowed in associated type constraints |
| 13 | + | - ^ expected one of `,`, `::`, `:`, or `>` |
| 14 | + | | |
| 15 | + | maybe try to close unmatched angle bracket |
14 | 16 |
|
15 | | -error: paths with multiple segments cannot be used in associated type constraints |
16 | | - --> $DIR/trait-path-segments.rs:31:16 |
| 17 | +error: expected one of `!`, `+`, `,`, `::`, `:`, or `>`, found `=` |
| 18 | + --> $DIR/trait-path-segments.rs:31:25 |
17 | 19 | | |
18 | 20 | LL | impl<T : X<X::Y<'a> = &'a u32>> Z for T {} |
19 | | - | ^^^^^^^^ |
| 21 | + | - ^ expected one of `!`, `+`, `,`, `::`, `:`, or `>` |
| 22 | + | | |
| 23 | + | maybe try to close unmatched angle bracket |
20 | 24 |
|
21 | 25 | warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes |
22 | 26 | --> $DIR/trait-path-segments.rs:1:12 |
|
0 commit comments