]> git.lizzy.rs Git - rust.git/blob - tests/ui/complex_types.stderr
Merge pull request #3269 from rust-lang-nursery/relicense
[rust.git] / tests / ui / complex_types.stderr
1 error: very complex type used. Consider factoring parts into `type` definitions
2   --> $DIR/complex_types.rs:19:12
3    |
4 19 | const CST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::type-complexity` implied by `-D warnings`
8
9 error: very complex type used. Consider factoring parts into `type` definitions
10   --> $DIR/complex_types.rs:20:12
11    |
12 20 | static ST: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
13    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: very complex type used. Consider factoring parts into `type` definitions
16   --> $DIR/complex_types.rs:23:8
17    |
18 23 |     f: Vec<Vec<Box<(u32, u32, u32, u32)>>>,
19    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: very complex type used. Consider factoring parts into `type` definitions
22   --> $DIR/complex_types.rs:26:11
23    |
24 26 | struct TS(Vec<Vec<Box<(u32, u32, u32, u32)>>>);
25    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: very complex type used. Consider factoring parts into `type` definitions
28   --> $DIR/complex_types.rs:29:11
29    |
30 29 |     Tuple(Vec<Vec<Box<(u32, u32, u32, u32)>>>),
31    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: very complex type used. Consider factoring parts into `type` definitions
34   --> $DIR/complex_types.rs:30:17
35    |
36 30 |     Struct { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> },
37    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39 error: very complex type used. Consider factoring parts into `type` definitions
40   --> $DIR/complex_types.rs:34:14
41    |
42 34 |     const A: (u32, (u32, (u32, (u32, u32)))) = (0, (0, (0, (0, 0))));
43    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: very complex type used. Consider factoring parts into `type` definitions
46   --> $DIR/complex_types.rs:35:30
47    |
48 35 |     fn impl_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
49    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
51 error: very complex type used. Consider factoring parts into `type` definitions
52   --> $DIR/complex_types.rs:39:14
53    |
54 39 |     const A: Vec<Vec<Box<(u32, u32, u32, u32)>>>;
55    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: very complex type used. Consider factoring parts into `type` definitions
58   --> $DIR/complex_types.rs:40:14
59    |
60 40 |     type B = Vec<Vec<Box<(u32, u32, u32, u32)>>>;
61    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62
63 error: very complex type used. Consider factoring parts into `type` definitions
64   --> $DIR/complex_types.rs:41:25
65    |
66 41 |     fn method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>);
67    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
69 error: very complex type used. Consider factoring parts into `type` definitions
70   --> $DIR/complex_types.rs:42:29
71    |
72 42 |     fn def_method(&self, p: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
73    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
75 error: very complex type used. Consider factoring parts into `type` definitions
76   --> $DIR/complex_types.rs:45:15
77    |
78 45 | fn test1() -> Vec<Vec<Box<(u32, u32, u32, u32)>>> { vec![] }
79    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
81 error: very complex type used. Consider factoring parts into `type` definitions
82   --> $DIR/complex_types.rs:47:14
83    |
84 47 | fn test2(_x: Vec<Vec<Box<(u32, u32, u32, u32)>>>) { }
85    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86
87 error: very complex type used. Consider factoring parts into `type` definitions
88   --> $DIR/complex_types.rs:50:13
89    |
90 50 |     let _y: Vec<Vec<Box<(u32, u32, u32, u32)>>> = vec![];
91    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
93 error: aborting due to 15 previous errors
94