Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
bad-generic-in-copy-impl.rs
blob: 092a7af236badc50294ea2b9c09a9f2fee10fbd9 [
file
] [
log
] [
blame
]
#[
derive
(
Copy
,
Clone
)]
pub
struct
Foo
{
x
:
[
u8
;
SIZE
],
//~^ ERROR mismatched types
//~| ERROR mismatched types
}
const
SIZE
:
u32
=
1
;
fn
main
()
{}