Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
mir
/
auxiliary
/
issue_76375_aux.rs
blob: f8b318d58ba2adb115f16953c71ad723561557c8 [
file
] [
log
] [
blame
]
// edition:2018
// compile-flags: -Z mir-opt-level=2 -Z unsound-mir-opts
#[
inline
(
always
)]
pub
fn
f
(
s
:
bool
)
->
String
{
let
a
=
"Hello world!"
.
to_string
();
let
b
=
a
;
let
c
=
b
;
if
s
{
c
}
else
{
String
::
new
()
}
}