]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-84148-2.stderr
Parse `Ty?` as `Option<Ty>` and provide structured suggestion
[rust.git] / src / test / ui / parser / issues / issue-84148-2.stderr
1 error: this file contains an unclosed delimiter
2   --> $DIR/issue-84148-2.rs:3:16
3    |
4 LL | fn f(t:for<>t?
5    |     -          ^
6    |     |
7    |     unclosed delimiter
8
9 error: invalid `?` in type
10   --> $DIR/issue-84148-2.rs:3:14
11    |
12 LL | fn f(t:for<>t?
13    |              ^ `?` is only allowed on expressions, not types
14    |
15 help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
16    |
17 LL | fn f(t:Option<for<>t>
18    |        +++++++      ~
19
20 error: expected one of `->`, `where`, or `{`, found `<eof>`
21   --> $DIR/issue-84148-2.rs:3:16
22    |
23 LL | fn f(t:for<>t?
24    |                ^ expected one of `->`, `where`, or `{`
25
26 error: aborting due to 3 previous errors
27