]> git.lizzy.rs Git - rust.git/blob - tests/ui/liveness/liveness-upvars.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / liveness / liveness-upvars.stderr
1 warning: value assigned to `last` is never read
2   --> $DIR/liveness-upvars.rs:10:9
3    |
4 LL |         last = Some(s);
5    |         ^^^^
6    |
7    = help: maybe it is overwritten before being read?
8 note: the lint level is defined here
9   --> $DIR/liveness-upvars.rs:4:9
10    |
11 LL | #![warn(unused)]
12    |         ^^^^^^
13    = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
14
15 warning: unused variable: `last`
16   --> $DIR/liveness-upvars.rs:10:9
17    |
18 LL |         last = Some(s);
19    |         ^^^^
20    |
21    = help: did you mean to capture by reference instead?
22    = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
23
24 warning: unused variable: `sum`
25   --> $DIR/liveness-upvars.rs:22:9
26    |
27 LL |         sum += x;
28    |         ^^^
29    |
30    = help: did you mean to capture by reference instead?
31
32 warning: value captured by `c` is never read
33   --> $DIR/liveness-upvars.rs:32:9
34    |
35 LL |         c = 1;
36    |         ^
37    |
38    = help: did you mean to capture by reference instead?
39
40 warning: value captured by `c` is never read
41   --> $DIR/liveness-upvars.rs:36:9
42    |
43 LL |         c = 1;
44    |         ^
45    |
46    = help: did you mean to capture by reference instead?
47
48 warning: unused variable: `c`
49   --> $DIR/liveness-upvars.rs:42:9
50    |
51 LL |         c += 1;
52    |         ^
53    |
54    = help: did you mean to capture by reference instead?
55
56 warning: value assigned to `c` is never read
57   --> $DIR/liveness-upvars.rs:45:9
58    |
59 LL |         c += 1;
60    |         ^
61    |
62    = help: maybe it is overwritten before being read?
63
64 warning: unused variable: `c`
65   --> $DIR/liveness-upvars.rs:45:9
66    |
67 LL |         c += 1;
68    |         ^
69    |
70    = help: did you mean to capture by reference instead?
71
72 warning: value assigned to `c` is never read
73   --> $DIR/liveness-upvars.rs:58:9
74    |
75 LL |         c += 1;
76    |         ^
77    |
78    = help: maybe it is overwritten before being read?
79
80 warning: value assigned to `c` is never read
81   --> $DIR/liveness-upvars.rs:64:9
82    |
83 LL |         c += 1;
84    |         ^
85    |
86    = help: maybe it is overwritten before being read?
87
88 warning: value assigned to `d` is never read
89   --> $DIR/liveness-upvars.rs:73:13
90    |
91 LL |             d = Some("d1");
92    |             ^
93    |
94    = help: maybe it is overwritten before being read?
95
96 warning: value assigned to `e` is never read
97   --> $DIR/liveness-upvars.rs:77:13
98    |
99 LL |             e = Some("e1");
100    |             ^
101    |
102    = help: maybe it is overwritten before being read?
103
104 warning: value assigned to `e` is never read
105   --> $DIR/liveness-upvars.rs:79:13
106    |
107 LL |             e = Some("e2");
108    |             ^
109    |
110    = help: maybe it is overwritten before being read?
111
112 warning: unused variable: `e`
113   --> $DIR/liveness-upvars.rs:77:13
114    |
115 LL |             e = Some("e1");
116    |             ^
117    |
118    = help: did you mean to capture by reference instead?
119
120 warning: value assigned to `v` is never read
121   --> $DIR/liveness-upvars.rs:87:13
122    |
123 LL |             v = T::default();
124    |             ^
125    |
126    = help: maybe it is overwritten before being read?
127
128 warning: value assigned to `z` is never read
129   --> $DIR/liveness-upvars.rs:99:17
130    |
131 LL |                 z = T::default();
132    |                 ^
133    |
134    = help: maybe it is overwritten before being read?
135
136 warning: unused variable: `z`
137   --> $DIR/liveness-upvars.rs:99:17
138    |
139 LL |                 z = T::default();
140    |                 ^
141    |
142    = help: did you mean to capture by reference instead?
143
144 warning: value assigned to `state` is never read
145   --> $DIR/liveness-upvars.rs:125:9
146    |
147 LL |         state = 4;
148    |         ^^^^^
149    |
150    = help: maybe it is overwritten before being read?
151
152 warning: value assigned to `state` is never read
153   --> $DIR/liveness-upvars.rs:128:9
154    |
155 LL |         state = 5;
156    |         ^^^^^
157    |
158    = help: maybe it is overwritten before being read?
159
160 warning: unused variable: `state`
161   --> $DIR/liveness-upvars.rs:125:9
162    |
163 LL |         state = 4;
164    |         ^^^^^
165    |
166    = help: did you mean to capture by reference instead?
167
168 warning: value assigned to `s` is never read
169   --> $DIR/liveness-upvars.rs:137:9
170    |
171 LL |         s = 1;
172    |         ^
173    |
174    = help: maybe it is overwritten before being read?
175
176 warning: value assigned to `s` is never read
177   --> $DIR/liveness-upvars.rs:139:9
178    |
179 LL |         s = yield ();
180    |         ^
181    |
182    = help: maybe it is overwritten before being read?
183
184 warning: 22 warnings emitted
185