Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
const-blocks
/
trait-error.rs
blob: 49d1e9b9434202e9d8871345f64d27889abf1395 [
file
] [
log
] [
blame
]
#[
derive
(
Copy
,
Clone
)]
struct
Foo
<
T
>(
T
);
fn
main
()
{
[
Foo
(
String
::
new
());
4
];
//~^ ERROR the trait bound `String: Copy` is not satisfied [E0277]
}