Sign in
rust
/
rust
/
4e2ede2c5bc2f8790ef28fdf43ebab3e2f5c80a0
/
.
/
tests
/
ui
/
parser
/
trailing-question-in-type.fixed
blob: 47ae66ac677e22b65284a4f454c4253ff9b03ffc [
file
]
//@ run-rustfix
fn foo
()
->
Option
<i32>
{
//~ ERROR invalid `?` in type
let
x
:
Option
<i32>
=
Some
(
1
);
//~ ERROR invalid `?` in type
x
}
fn main
()
{
let
_
:
Option
<i32>
=
foo
();
}