Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
impl-trait
/
universal_multiple_bounds.rs
blob: 40c1405c39be1dbf85d1fbac0ca928c1f48422fa [
file
] [
log
] [
blame
]
// run-pass
use
std
::
fmt
::
Display
;
fn
foo
(
f
:
impl
Display
+
Clone
)
->
String
{
let
g
=
f
.
clone
();
format
!(
"{} + {}"
,
f
,
g
)
}
fn
main
()
{
let
sum
=
foo
(
format
!(
"22"
));
assert_eq
!(
sum
,
r
"22 + 22"
);
}