rust/tests/ui/consts/self_normalization.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
220 B
Rust
Raw Normal View History

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