mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 07:26:06 +00:00
17 lines
219 B
Rust
17 lines
219 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() {}
|