]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / parse / trait-path-missing-gen_arg.stderr
CommitLineData
fc512014 1error: expected one of `>`, a const expression, lifetime, or type, found `:`
136023e0 2 --> $DIR/trait-path-missing-gen_arg.rs:8:30
fc512014
XL
3 |
4LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
5 | ^ expected one of `>`, a const expression, lifetime, or type
6 |
7help: expressions must be enclosed in braces to be used as const generic arguments
8 |
9LL | fn f1<'a>(arg : Box<{ dyn X< : 32 } >>) {}
10 | ^ ^
11
12error: expected parameter name, found `>`
136023e0 13 --> $DIR/trait-path-missing-gen_arg.rs:8:36
fc512014
XL
14 |
15LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
16 | ^ expected parameter name
17
18error: expected one of `!`, `)`, `+`, `,`, or `::`, found `>`
136023e0 19 --> $DIR/trait-path-missing-gen_arg.rs:8:36
fc512014
XL
20 |
21LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
22 | ^
23 | |
24 | expected one of `!`, `)`, `+`, `,`, or `::`
25 | help: missing `,`
26
27error: expected one of `>`, a const expression, lifetime, or type, found `=`
136023e0 28 --> $DIR/trait-path-missing-gen_arg.rs:16:30
fc512014
XL
29 |
30LL | 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 35error[E0747]: constant provided when a type was expected
136023e0 36 --> $DIR/trait-path-missing-gen_arg.rs:8:23
fc512014
XL
37 |
38LL | fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
39 | ^^^^^^^^^^^
40
136023e0 41error: aborting due to 5 previous errors
fc512014
XL
42
43For more information about this error, try `rustc --explain E0747`.