1 error: very complex type used. Consider factoring parts into `type` definitions
2 --> complex_types.rs:9:12
4 9 | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D type-complexity` implied by `-D warnings`
9 error: very complex type used. Consider factoring parts into `type` definitions
10 --> complex_types.rs:10:12
12 10 | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 = note: `-D type-complexity` implied by `-D warnings`
17 error: very complex type used. Consider factoring parts into `type` definitions
18 --> complex_types.rs:13:8
20 13 | f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 = note: `-D type-complexity` implied by `-D warnings`
25 error: very complex type used. Consider factoring parts into `type` definitions
26 --> complex_types.rs:16:11
28 16 | struct TS(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 = note: `-D type-complexity` implied by `-D warnings`
33 error: very complex type used. Consider factoring parts into `type` definitions
34 --> complex_types.rs:19:11
36 19 | Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 = note: `-D type-complexity` implied by `-D warnings`
41 error: very complex type used. Consider factoring parts into `type` definitions
42 --> complex_types.rs:20:17
44 20 | Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 = note: `-D type-complexity` implied by `-D warnings`
49 error: very complex type used. Consider factoring parts into `type` definitions
50 --> complex_types.rs:24:14
52 24 | const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 = note: `-D type-complexity` implied by `-D warnings`
57 error: very complex type used. Consider factoring parts into `type` definitions
58 --> complex_types.rs:25:30
60 25 | fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 = note: `-D type-complexity` implied by `-D warnings`
65 error: very complex type used. Consider factoring parts into `type` definitions
66 --> complex_types.rs:29:14
68 29 | const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 = note: `-D type-complexity` implied by `-D warnings`
73 error: very complex type used. Consider factoring parts into `type` definitions
74 --> complex_types.rs:30:14
76 30 | type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79 = note: `-D type-complexity` implied by `-D warnings`
81 error: very complex type used. Consider factoring parts into `type` definitions
82 --> complex_types.rs:31:25
84 31 | fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 = note: `-D type-complexity` implied by `-D warnings`
89 error: very complex type used. Consider factoring parts into `type` definitions
90 --> complex_types.rs:32:29
92 32 | fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 = note: `-D type-complexity` implied by `-D warnings`
97 error: very complex type used. Consider factoring parts into `type` definitions
98 --> complex_types.rs:35:15
100 35 | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> { vec![] }
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103 = note: `-D type-complexity` implied by `-D warnings`
105 error: very complex type used. Consider factoring parts into `type` definitions
106 --> complex_types.rs:37:14
108 37 | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 = note: `-D type-complexity` implied by `-D warnings`
113 error: very complex type used. Consider factoring parts into `type` definitions
114 --> complex_types.rs:40:13
116 40 | let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 = note: `-D type-complexity` implied by `-D warnings`
121 error: aborting due to previous error(s)
123 error: Could not compile `clippy_tests`.
125 To learn more, run the command again with --verbose.