|
| 1 | +error: expected one of `>`, const, lifetime, or type, found `:` |
| 2 | + --> $DIR/trait-path-missing-gen_arg.rs:9:30 |
| 3 | + | |
| 4 | +LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} |
| 5 | + | ^ expected one of `>`, const, 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 } >>) {} |
| 10 | + | ^ ^ |
| 11 | + |
| 12 | +error: expected parameter name, found `>` |
| 13 | + --> $DIR/trait-path-missing-gen_arg.rs:9:36 |
| 14 | + | |
| 15 | +LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} |
| 16 | + | ^ expected parameter name |
| 17 | + |
| 18 | +error: expected one of `!`, `)`, `+`, `,`, or `::`, found `>` |
| 19 | + --> $DIR/trait-path-missing-gen_arg.rs:9:36 |
| 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 `>`, const, lifetime, or type, found `=` |
| 28 | + --> $DIR/trait-path-missing-gen_arg.rs:17:30 |
| 29 | + | |
| 30 | +LL | fn f1<'a>(arg : Box<dyn X< = 32 >>) {} |
| 31 | + | ^ expected one of `>`, const, lifetime, or type |
| 32 | + |
| 33 | +warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes |
| 34 | + --> $DIR/trait-path-missing-gen_arg.rs:1:12 |
| 35 | + | |
| 36 | +LL | #![feature(generic_associated_types)] |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 | + | |
| 39 | + = note: `#[warn(incomplete_features)]` on by default |
| 40 | + = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information |
| 41 | + |
| 42 | +error[E0747]: constant provided when a type was expected |
| 43 | + --> $DIR/trait-path-missing-gen_arg.rs:9:23 |
| 44 | + | |
| 45 | +LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {} |
| 46 | + | ^^^^^^^^^^^ |
| 47 | + |
| 48 | +error: aborting due to 5 previous errors; 1 warning emitted |
| 49 | + |
| 50 | +For more information about this error, try `rustc --explain E0747`. |
0 commit comments