summary refs log tree commit diff
path: root/src/test/ui/const-generics/different_byref.rs
blob: 78964eb3dee6e781d21857ba721b8415f3d4e567 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

struct Const<const V: [usize; 1]> {}

fn main() {
    let mut x = Const::<{ [3] }> {};
    x = Const::<{ [4] }> {};
    //~^ ERROR mismatched types

}