about summary refs log tree commit diff
path: root/tests/ui/issues/issue-19398.rs
blob: 473e43650c2c563440873b89e8538ac9d63bc917 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass

trait T {
    unsafe extern "Rust" fn foo(&self);
}

impl T for () {
    unsafe extern "Rust" fn foo(&self) {}
}

fn main() {}