mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
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() {}
|