Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-drop-from-guard.rs
blob: 4995029a70f7e2696abf82883acf3c2369d4cdf8 [
file
] [
log
] [
blame
]
fn
foo
(
_
:
String
)
{}
fn
main
()
{
let
my_str
=
"hello"
.
to_owned
();
match
Some
(
42
)
{
Some
(
_
)
if
{
drop
(
my_str
);
false
}
=>
{}
Some
(
_
)
=>
{}
None
=>
{
foo
(
my_str
);
}
//~ ERROR [E0382]
}
}