Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
str
/
str-concat-on-double-ref.rs
blob: 23e5f8920622e7247625230d74d10f4fb3e5f16f [
file
] [
log
] [
blame
]
fn
main
()
{
let
a
:
&
String
=
&
"1"
.
to_owned
();
let
b
:
&
str
=
&
"2"
;
let
c
=
a
+
b
;
//~^ ERROR cannot add `&str` to `&std::string::String`
println
!(
"{:?}"
,
c
);
}