1- error: expected one of `>`, const, lifetime, or type, found `:`
1+ error: expected one of `>`, a const expression , lifetime, or type, found `:`
22 --> $DIR/trait-path-missing-gen_arg.rs:9:30
33 |
44LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
5- | ^ expected one of `>`, const, lifetime, or type
5+ | ^ expected one of `>`, a const expression , lifetime, or type
66 |
77help: expressions must be enclosed in braces to be used as const generic arguments
88 |
@@ -24,11 +24,11 @@ LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
2424 | expected one of `!`, `)`, `+`, `,`, or `::`
2525 | help: missing `,`
2626
27- error: expected one of `>`, const, lifetime, or type, found `=`
27+ error: expected one of `>`, a const expression , lifetime, or type, found `=`
2828 --> $DIR/trait-path-missing-gen_arg.rs:17:30
2929 |
3030LL | fn f1<'a>(arg : Box<dyn X< = 32 >>) {}
31- | ^ expected one of `>`, const, lifetime, or type
31+ | ^ expected one of `>`, a const expression , lifetime, or type
3232
3333warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
3434 --> $DIR/trait-path-missing-gen_arg.rs:1:12
0 commit comments