]> git.lizzy.rs Git - rust.git/blob - tests/ui/types_fn_to_int.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / types_fn_to_int.rs
1 enum Foo {
2     A(usize),
3     B
4 }
5
6 fn bar() -> i32 {
7     0i32
8 }
9
10 fn main() {
11     let x = Foo::A;
12     let _y = x as i32;
13     let _y1 = Foo::A as i32;
14     let _y = x as u32;
15     let _z = bar as u32;
16     let _y = bar as i64;
17     let _y = bar as u64;
18     let _z = Foo::A as i128;
19     let _z = Foo::A as u128;
20     let _z = bar as i128;
21     let _z = bar as u128;
22 }