fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
540 B19 linesraw
1error: invalid `?` in type
2  --> $DIR/issue-84148-1.rs:1:14
3   |
4LL | fn f(t:for<>t?)
5   |              ^ `?` is only allowed on expressions, not types
6   |
7help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
8   |
9LL | fn f(t:Option<for<>t>)
10   |        +++++++      ~
11
12error: expected one of `->`, `where`, or `{`, found `<eof>`
13  --> $DIR/issue-84148-1.rs:1:15
14   |
15LL | fn f(t:for<>t?)
16   |               ^ expected one of `->`, `where`, or `{`
17
18error: aborting due to 2 previous errors
19