]> git.lizzy.rs Git - rust.git/blob - tests/ui/types.rs
Auto merge of #3645 - phansch:remove_copyright_headers, r=oli-obk
[rust.git] / tests / ui / types.rs
1 // should not warn on lossy casting in constant types
2 // because not supported yet
3 const C: i32 = 42;
4 const C_I64: i64 = C as i64;
5
6 fn main() {
7     // should suggest i64::from(c)
8     let c: i32 = 42;
9     let c_i64: i64 = c as i64;
10 }