mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
220 B
Rust
17 lines
220 B
Rust
//@ check-pass
|
|
|
|
fn testfn(_arr: &mut [(); 0]) {}
|
|
|
|
trait TestTrait {
|
|
fn method();
|
|
}
|
|
|
|
impl TestTrait for [(); 0] {
|
|
fn method() {
|
|
let mut arr: Self = [(); 0];
|
|
testfn(&mut arr);
|
|
}
|
|
}
|
|
|
|
fn main() {}
|