2 #![allow(unused, clippy::needless_pass_by_value, clippy::vec_box)]
3 #![feature(associated_type_defaults)]
5 type Alias = Vec<Vec<Box<(u32, u32, u32, u32)>>>; // no warning here
7 const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
8 static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
11 f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
14 struct TS(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
17 Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
18 Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
22 const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
23 fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
27 const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
28 type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
29 fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
30 fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
33 fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> {
37 fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
40 let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
45 // should not warn, since we don't have control over the signature (#3222)