rust/tests/ui/consts/self_normalization.rs

17 lines
220 B
Rust
Raw Permalink Normal View History

//@ check-pass
2019-03-22 17:33:12 +00:00
2019-05-17 09:13:55 +00:00
fn testfn(_arr: &mut [(); 0]) {}
2019-03-22 17:33:12 +00:00
trait TestTrait {
fn method();
}
impl TestTrait for [(); 0] {
fn method() {
let mut arr: Self = [(); 0];
testfn(&mut arr);
}
}
fn main() {}