mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
13 lines
316 B
Rust
13 lines
316 B
Rust
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
|
|
}
|