Sign in
◑
Theme
rust
/
rust
/
refs/heads/main
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
ice-14325.rs
blob: faf26b3f215e5104e32cf4c85fde3a9e27d09f9a [
file
] [
edit
]
//@check-pass
#![
expect
(
clippy
::
redundant_pattern_matching
)]
struct
S
<
'
a
>
{
s
:
&
'
a str
,
}
fn
foo
()
->
Option
<
S
<
'
static
>>
{
if
let
Some
(
_
)
=
Some
(
0
)
{
Some
(
S
{
s
:
"xyz"
})
}
else
{
None
}
}
fn
main
()
{}