]>
Commit | Line | Data |
---|---|---|
fc512014 | 1 | error: expected one of `>`, a const expression, lifetime, or type, found `:` |
f2b60f7d | 2 | --> $DIR/trait-path-missing-gen_arg.rs:6:30 |
fc512014 XL |
3 | | |
4 | LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} | |
5 | | ^ expected one of `>`, a const expression, lifetime, or type | |
6 | | | |
7 | help: expressions must be enclosed in braces to be used as const generic arguments | |
8 | | | |
9 | LL | fn f1<'a>(arg : Box<{ dyn X< : 32 } >>) {} | |
94222f64 | 10 | | + + |
fc512014 XL |
11 | |
12 | error: expected parameter name, found `>` | |
f2b60f7d | 13 | --> $DIR/trait-path-missing-gen_arg.rs:6:36 |
fc512014 XL |
14 | | |
15 | LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} | |
16 | | ^ expected parameter name | |
17 | ||
18 | error: expected one of `!`, `)`, `+`, `,`, or `::`, found `>` | |
f2b60f7d | 19 | --> $DIR/trait-path-missing-gen_arg.rs:6:36 |
fc512014 XL |
20 | | |
21 | LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} | |
22 | | ^ | |
23 | | | | |
24 | | expected one of `!`, `)`, `+`, `,`, or `::` | |
25 | | help: missing `,` | |
26 | ||
27 | error: expected one of `>`, a const expression, lifetime, or type, found `=` | |
f2b60f7d | 28 | --> $DIR/trait-path-missing-gen_arg.rs:14:30 |
fc512014 XL |
29 | | |
30 | LL | fn f1<'a>(arg : Box<dyn X< = 32 >>) {} | |
5869c6ff XL |
31 | | - ^ expected one of `>`, a const expression, lifetime, or type |
32 | | | | |
33 | | maybe try to close unmatched angle bracket | |
fc512014 | 34 | |
fc512014 | 35 | error[E0747]: constant provided when a type was expected |
f2b60f7d | 36 | --> $DIR/trait-path-missing-gen_arg.rs:6:23 |
fc512014 XL |
37 | | |
38 | LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} | |
39 | | ^^^^^^^^^^^ | |
40 | ||
136023e0 | 41 | error: aborting due to 5 previous errors |
fc512014 XL |
42 | |
43 | For more information about this error, try `rustc --explain E0747`. |