summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/as_conversions.rs
blob: cd745feec6d8acc81063dae1d74b6f0a0a4e85e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// aux-build:macro_rules.rs

#![warn(clippy::as_conversions)]

#[macro_use]
extern crate macro_rules;

fn with_external_macro() {
    as_conv_with_arg!(0u32 as u64);
    as_conv!();
}

fn main() {
    let i = 0u32 as u64;

    let j = &i as *const u64 as *mut u64;

    with_external_macro();
}