about summary refs log tree commit diff
path: root/tests/ui/resolve/filter-intrinsics.rs
blob: 8d6d22817dc5c088177c0d4dc6de5c21f1031c3b (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    // Should suggest only `std::mem::transmute`
    let _ = transmute::<usize>();
    //~^ ERROR cannot find

    // Should suggest `std::intrinsics::fabsf64`,
    // since there is no non-intrinsic to suggest.
    let _ = fabsf64(1.0);
    //~^ ERROR cannot find
}