Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
12
tests/ui/numeric/const-scope.rs
Normal file
12
tests/ui/numeric/const-scope.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
const C: i32 = 1i8; //~ ERROR mismatched types
|
||||
const D: i8 = C; //~ ERROR mismatched types
|
||||
|
||||
const fn foo() {
|
||||
let c: i32 = 1i8; //~ ERROR mismatched types
|
||||
let d: i8 = c; //~ ERROR mismatched types
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let c: i32 = 1i8; //~ ERROR mismatched types
|
||||
let d: i8 = c; //~ ERROR mismatched types
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue