1
- error: expected one of `>`, const, lifetime, or type, found `:`
1
+ error: expected one of `>`, a const expression , lifetime, or type, found `:`
2
2
--> $DIR/trait-path-missing-gen_arg.rs:9:30
3
3
|
4
4
LL | 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
6
6
|
7
7
help: expressions must be enclosed in braces to be used as const generic arguments
8
8
|
@@ -24,11 +24,11 @@ LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
24
24
| expected one of `!`, `)`, `+`, `,`, or `::`
25
25
| help: missing `,`
26
26
27
- error: expected one of `>`, const, lifetime, or type, found `=`
27
+ error: expected one of `>`, a const expression , lifetime, or type, found `=`
28
28
--> $DIR/trait-path-missing-gen_arg.rs:17:30
29
29
|
30
30
LL | 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
32
32
33
33
warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
34
34
--> $DIR/trait-path-missing-gen_arg.rs:1:12
0 commit comments