2022-01-10 16:02:19 -06:00
|
|
|
error: invalid `?` in type
|
2021-06-04 12:48:24 -05:00
|
|
|
--> $DIR/issue-84148-1.rs:1:14
|
|
|
|
|
|
|
|
|
LL | fn f(t:for<>t?)
|
2022-01-10 16:02:19 -06:00
|
|
|
| ^ `?` is only allowed on expressions, not types
|
2021-06-04 12:48:24 -05:00
|
|
|
|
|
2022-01-10 16:02:19 -06:00
|
|
|
help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
|
|
|
|
|
|
|
|
|
LL | fn f(t:Option<for<>t>)
|
|
|
|
| +++++++ ~
|
2021-06-04 12:48:24 -05:00
|
|
|
|
2021-12-04 12:05:30 -06:00
|
|
|
error: expected one of `->`, `where`, or `{`, found `<eof>`
|
2021-06-04 12:48:24 -05:00
|
|
|
--> $DIR/issue-84148-1.rs:1:15
|
|
|
|
|
|
|
|
|
LL | fn f(t:for<>t?)
|
2021-12-04 12:05:30 -06:00
|
|
|
| ^ expected one of `->`, `where`, or `{`
|
2021-06-04 12:48:24 -05:00
|
|
|
|
2022-01-10 16:02:19 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2021-06-04 12:48:24 -05:00
|
|
|
|