Sign in
android
/
toolchain
/
rustc
/
d59a28787b7ba06edbd1e4528a42b66d67dc6a19
/
.
/
src
/
test
/
ui
/
consts
/
rfc-2203-const-array-repeat-exprs
/
trait-error.rs
blob: f8df7aafa60df89614505a058369c72eccc10fc7 [
file
] [
log
] [
blame
]
#![
feature
(
const_in_array_repeat_expressions
)]
#[
derive
(
Copy
,
Clone
)]
struct
Foo
<
T
>(
T
);
fn
main
()
{
[
Foo
(
String
::
new
());
4
];
//~^ ERROR the trait bound `Foo<String>: Copy` is not satisfied [E0277]
}