]>
git.proxmox.com Git - rustc.git/blob - tests/pretty/issue-4264.rs
2 // pretty-mode:hir,typed
3 // pp-exact:issue-4264.pp
5 // #4264 fixed-length vector types
7 pub fn foo(_
: [i32; 3]) {}
10 const FOO
: usize = 5 - 4;
11 let _
: [(); FOO
] = [()];
13 let _
: [(); 1] = [()];
15 let _
= &([1,2,3]) as *const _
as *const [i32; 3];
20 pub type Foo
= [i32; 3];
26 pub struct TupleBar([i32; 4]);
32 pub fn id
<T
>(x
: T
) -> T { x }
35 let _
= id
::<[i32; 3]>([1,2,3]);