]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parse/trait-path-types.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-types.stderr
1 error: expected one of `,`, `:`, or `>`, found `=`
2   --> $DIR/trait-path-types.rs:8:37
3    |
4 LL |   fn f<'a>(arg : Box<dyn X< [u8; 1] = u32>>) {}
5    |                                   - ^ expected one of `,`, `:`, or `>`
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 f<'a>(arg : Box<dyn X< [u8; 1]> = u32>>) {}
12    |                                    +
13
14 error: expected one of `,`, `:`, or `>`, found `=`
15   --> $DIR/trait-path-types.rs:13:37
16    |
17 LL |   fn f1<'a>(arg : Box<dyn X<(Y<'a>) = &'a ()>>) {}
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 |   fn f1<'a>(arg : Box<dyn X<(Y<'a>)> = &'a ()>>) {}
25    |                                    +
26
27 error: expected one of `,`, `:`, or `>`, found `=`
28   --> $DIR/trait-path-types.rs:18:33
29    |
30 LL |   fn f1<'a>(arg : Box<dyn X< 'a = u32 >>) {}
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 |   fn f1<'a>(arg : Box<dyn X< 'a> = u32 >>) {}
38    |                                +
39
40 error: aborting due to 3 previous errors
41