Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
inference
/
issue-103587.rs
blob: 11536f9f4cc485499e86f226ab92dab72599b6ed [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
=
Some
(
123
);
if
let
Some
(
_
)
==
x
{}
//~^ ERROR expected `=`, found `==`
if
Some
(
_
)
=
x
{}
//~^ ERROR mismatched types
if
None
=
x
{
}
//~^ ERROR mismatched types
}