rust/tests/ui/numeric/const-scope.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
316 B
Rust
Raw Normal View History

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
}