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