]> git.lizzy.rs Git - rust.git/blob - tests/ui/no_effect.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / no_effect.stderr
1 error: statement with no effect
2   --> $DIR/no_effect.rs:74:5
3    |
4 74 |     0;
5    |     ^^
6    |
7    = note: `-D clippy::no-effect` implied by `-D warnings`
8
9 error: statement with no effect
10   --> $DIR/no_effect.rs:75:5
11    |
12 75 |     s2;
13    |     ^^^
14
15 error: statement with no effect
16   --> $DIR/no_effect.rs:76:5
17    |
18 76 |     Unit;
19    |     ^^^^^
20
21 error: statement with no effect
22   --> $DIR/no_effect.rs:77:5
23    |
24 77 |     Tuple(0);
25    |     ^^^^^^^^^
26
27 error: statement with no effect
28   --> $DIR/no_effect.rs:78:5
29    |
30 78 |     Struct { field: 0 };
31    |     ^^^^^^^^^^^^^^^^^^^^
32
33 error: statement with no effect
34   --> $DIR/no_effect.rs:79:5
35    |
36 79 |     Struct { ..s };
37    |     ^^^^^^^^^^^^^^^
38
39 error: statement with no effect
40   --> $DIR/no_effect.rs:80:5
41    |
42 80 |     Union { a: 0 };
43    |     ^^^^^^^^^^^^^^^
44
45 error: statement with no effect
46   --> $DIR/no_effect.rs:81:5
47    |
48 81 |     Enum::Tuple(0);
49    |     ^^^^^^^^^^^^^^^
50
51 error: statement with no effect
52   --> $DIR/no_effect.rs:82:5
53    |
54 82 |     Enum::Struct { field: 0 };
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: statement with no effect
58   --> $DIR/no_effect.rs:83:5
59    |
60 83 |     5 + 6;
61    |     ^^^^^^
62
63 error: statement with no effect
64   --> $DIR/no_effect.rs:84:5
65    |
66 84 |     *&42;
67    |     ^^^^^
68
69 error: statement with no effect
70   --> $DIR/no_effect.rs:85:5
71    |
72 85 |     &6;
73    |     ^^^
74
75 error: statement with no effect
76   --> $DIR/no_effect.rs:86:5
77    |
78 86 |     (5, 6, 7);
79    |     ^^^^^^^^^^
80
81 error: statement with no effect
82   --> $DIR/no_effect.rs:87:5
83    |
84 87 |     box 42;
85    |     ^^^^^^^
86
87 error: statement with no effect
88   --> $DIR/no_effect.rs:88:5
89    |
90 88 |     ..;
91    |     ^^^
92
93 error: statement with no effect
94   --> $DIR/no_effect.rs:89:5
95    |
96 89 |     5..;
97    |     ^^^^
98
99 error: statement with no effect
100   --> $DIR/no_effect.rs:90:5
101    |
102 90 |     ..5;
103    |     ^^^^
104
105 error: statement with no effect
106   --> $DIR/no_effect.rs:91:5
107    |
108 91 |     5..6;
109    |     ^^^^^
110
111 error: statement with no effect
112   --> $DIR/no_effect.rs:93:5
113    |
114 93 |     [42, 55];
115    |     ^^^^^^^^^
116
117 error: statement with no effect
118   --> $DIR/no_effect.rs:94:5
119    |
120 94 |     [42, 55][1];
121    |     ^^^^^^^^^^^^
122
123 error: statement with no effect
124   --> $DIR/no_effect.rs:95:5
125    |
126 95 |     (42, 55).1;
127    |     ^^^^^^^^^^^
128
129 error: statement with no effect
130   --> $DIR/no_effect.rs:96:5
131    |
132 96 |     [42; 55];
133    |     ^^^^^^^^^
134
135 error: statement with no effect
136   --> $DIR/no_effect.rs:97:5
137    |
138 97 |     [42; 55][13];
139    |     ^^^^^^^^^^^^^
140
141 error: statement with no effect
142   --> $DIR/no_effect.rs:99:5
143    |
144 99 |     || x += 5;
145    |     ^^^^^^^^^^
146
147 error: statement with no effect
148    --> $DIR/no_effect.rs:101:5
149     |
150 101 |     FooString { s: s };
151     |     ^^^^^^^^^^^^^^^^^^^
152
153 error: aborting due to 25 previous errors
154