Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
11
tests/ui/const-generics/different_generic_args_array.rs
Normal file
11
tests/ui/const-generics/different_generic_args_array.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Check that different const types are different.
|
||||
#![feature(adt_const_params)]
|
||||
#![allow(incomplete_features)]
|
||||
|
||||
struct Const<const V: [usize; 1]> {}
|
||||
|
||||
fn main() {
|
||||
let mut x = Const::<{ [3] }> {};
|
||||
x = Const::<{ [4] }> {};
|
||||
//~^ ERROR mismatched types
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue