mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
13 lines
214 B
Rust
13 lines
214 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/19398
|
|
//@ check-pass
|
|
|
|
trait T {
|
|
unsafe extern "Rust" fn foo(&self);
|
|
}
|
|
|
|
impl T for () {
|
|
unsafe extern "Rust" fn foo(&self) {}
|
|
}
|
|
|
|
fn main() {}
|