2 // Test that a custom deref with a fat pointer return type does not ICE
12 type Target = [usize];
14 fn deref(&self) -> &[usize] {
19 pub fn foo(arr: &Arr) {
20 assert_eq!(arr.len(), 3);
21 let x: &[usize] = &**arr;
28 let a = Arr { ptr: Box::new([1, 2, 3]) };