]> git.proxmox.com Git - rustc.git/blame - src/test/ui/autoref-autoderef/deref-into-array.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / autoref-autoderef / deref-into-array.rs
CommitLineData
5099ac24
FG
1// check-pass
2
3struct Test<T>([T; 1]);
4
5impl<T> std::ops::Deref for Test<T> {
6 type Target = [T; 1];
7
8 fn deref(&self) -> &[T; 1] {
9 &self.0
10 }
11}
12
13fn main() {
14 let out = Test([(); 1]);
15 let blah = out.len();
16 println!("{}", blah);
17}