1
Fork 0
rust/src/test/ui/consts/self_normalization.rs

17 lines
221 B
Rust
Raw Normal View History

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