Sign in
◑
Theme
rust
/
rust
/
21b4ef650f016cc2ddcfa29c9ad2bd8f2d4e359d
/
.
/
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
();
}