summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/bad-generic-in-copy-impl.rs
blob: b5663464cf42281f369e0aff4c9a6b18cf78df79 (plain)
1
2
3
4
5
6
7
8
9
#[derive(Copy, Clone)]
pub struct Foo {
    x: [u8; SIZE],
    //~^ ERROR mismatched types
}

const SIZE: u32 = 1;

fn main() {}