summary refs log tree commit diff
path: root/tests/ui/consts/const-slice-array-deref.rs
blob: 9d84ed4bdb0195d926077499b6010fdb990d5493 (plain)
1
2
3
4
5
6
7
8
9
const ONE: [u16] = [1];
//~^ ERROR the size for values of type `[u16]` cannot be known at compilation time
//~| ERROR the size for values of type `[u16]` cannot be known at compilation time
//~| ERROR mismatched types

const TWO: &'static u16 = &ONE[0];
//~^ ERROR cannot move a value of type `[u16]`

fn main() {}