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