2021-08-27 11:04:57 -05:00
|
|
|
// Check that different const types are different.
|
2021-08-30 03:59:53 -05:00
|
|
|
#![feature(adt_const_params)]
|
2021-08-27 11:04:57 -05:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
struct Const<const V: [usize; 1]> {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut x = Const::<{ [3] }> {};
|
|
|
|
x = Const::<{ [4] }> {};
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
}
|