about summary refs log tree commit diff
path: root/tests/ui/const-generics/bad-generic-in-copy-impl.rs
blob: 092a7af236badc50294ea2b9c09a9f2fee10fbd9 (plain)
1
2
3
4
5
6
7
8
9
10
#[derive(Copy, Clone)]
pub struct Foo {
    x: [u8; SIZE],
    //~^ ERROR mismatched types
    //~| ERROR mismatched types
}

const SIZE: u32 = 1;

fn main() {}