]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-84148-1.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-84148-1.stderr
1 error: invalid `?` in type
2   --> $DIR/issue-84148-1.rs:1:14
3    |
4 LL | fn f(t:for<>t?)
5    |              ^ `?` is only allowed on expressions, not types
6    |
7 help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
8    |
9 LL | fn f(t:Option<for<>t>)
10    |        +++++++      ~
11
12 error: expected one of `->`, `where`, or `{`, found `<eof>`
13   --> $DIR/issue-84148-1.rs:1:15
14    |
15 LL | fn f(t:for<>t?)
16    |               ^ expected one of `->`, `where`, or `{`
17
18 error: aborting due to 2 previous errors
19