Move /src/test to /tests

This commit is contained in:
Albert Larsan
2023-01-05 09:13:28 +01:00
parent ca855e6e42
commit cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
@@ -0,0 +1,12 @@
fn main() {
let _x: i32 = [1, 2, 3];
//~^ ERROR mismatched types
//~| expected `i32`, found array
let x: &[i32] = &[1, 2, 3];
let _y: &i32 = x;
//~^ ERROR mismatched types
//~| expected reference `&i32`
//~| found reference `&[i32]`
//~| expected `i32`, found slice
}