about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-7423.rs
blob: fbf5d6520ed647c4dfcd63018cf5c4147de2a814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

pub trait Trait {
    fn f();
}

impl Trait for usize {
    fn f() {
        unsafe extern "C" {
            fn g() -> usize;
        }
    }
}

fn main() {}