Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
trait-bounds
/
issue-119530-sugg-from-fn.rs
blob: cfe378f55b1ee613f4abc010ef462613d5ec5d81 [
file
] [
log
] [
blame
] [
edit
]
fn
foo
()
->
String
{
String
::
new
()
}
fn
main
()
{
let
string_arr
=
[
foo
();
64
];
//~ ERROR the trait bound `String: Copy` is not satisfied
}