1 error: very complex type used. Consider factoring parts into `type` definitions
2 --> $DIR/complex_types.rs:7:12
4 LL | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::type-complexity` implied by `-D warnings`
9 error: very complex type used. Consider factoring parts into `type` definitions
10 --> $DIR/complex_types.rs:8:12
12 LL | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: very complex type used. Consider factoring parts into `type` definitions
16 --> $DIR/complex_types.rs:11:8
18 LL | f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: very complex type used. Consider factoring parts into `type` definitions
22 --> $DIR/complex_types.rs:14:11
24 LL | struct TS(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: very complex type used. Consider factoring parts into `type` definitions
28 --> $DIR/complex_types.rs:17:11
30 LL | Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: very complex type used. Consider factoring parts into `type` definitions
34 --> $DIR/complex_types.rs:18:17
36 LL | Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: very complex type used. Consider factoring parts into `type` definitions
40 --> $DIR/complex_types.rs:22:14
42 LL | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: very complex type used. Consider factoring parts into `type` definitions
46 --> $DIR/complex_types.rs:23:30
48 LL | fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: very complex type used. Consider factoring parts into `type` definitions
52 --> $DIR/complex_types.rs:27:14
54 LL | const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: very complex type used. Consider factoring parts into `type` definitions
58 --> $DIR/complex_types.rs:28:14
60 LL | type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 error: very complex type used. Consider factoring parts into `type` definitions
64 --> $DIR/complex_types.rs:29:25
66 LL | fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 error: very complex type used. Consider factoring parts into `type` definitions
70 --> $DIR/complex_types.rs:30:29
72 LL | fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75 error: very complex type used. Consider factoring parts into `type` definitions
76 --> $DIR/complex_types.rs:33:15
78 LL | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> {
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 error: very complex type used. Consider factoring parts into `type` definitions
82 --> $DIR/complex_types.rs:37:14
84 LL | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) {}
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 error: very complex type used. Consider factoring parts into `type` definitions
88 --> $DIR/complex_types.rs:40:13
90 LL | let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 error: aborting due to 15 previous errors