Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
parser
/
trailing-question-in-type.rs
blob: 4432ec9380cc4de3303a4f0a58a88c04f8a90270 [
file
] [
log
] [
blame
]
//@ run-rustfix
fn
foo
()
->
i32
?
{
//~ ERROR invalid `?` in type
let
x
:
i32
?
=
Some
(
1
);
//~ ERROR invalid `?` in type
x
}
fn
main
()
{
let
_
:
Option
<
i32
>
=
foo
();
}