This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
tests
/
ui
/
parser
/
issues
/
issue-84148-1.rs
4 lines
76 B
Rust
Raw
Normal View
History
Unescape
Escape
Remove incorrect assertion in type parsing code
2021-06-04 19:48:24 +02:00
fn
f
(
t
:
for
<
>
t
?
)
Parse `Ty?` as `Option<Ty>` and provide structured suggestion Swift has specific syntax that desugars to `Option<T>` similar to our `?` operator, which means that people might try to use it in Rust. Parse it and gracefully recover.
2022-01-10 22:02:19 +00:00
//~^ ERROR: expected one of
//~| ERROR: invalid `?` in type
Reference in New Issue
Copy Permalink