1 warning: value assigned to `last` is never read
2 --> $DIR/liveness-upvars.rs:10:9
7 = help: maybe it is overwritten before being read?
8 note: the lint level is defined here
9 --> $DIR/liveness-upvars.rs:4:9
13 = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
15 warning: unused variable: `last`
16 --> $DIR/liveness-upvars.rs:10:9
21 = help: did you mean to capture by reference instead?
22 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
24 warning: unused variable: `sum`
25 --> $DIR/liveness-upvars.rs:22:9
30 = help: did you mean to capture by reference instead?
32 warning: value captured by `c` is never read
33 --> $DIR/liveness-upvars.rs:32:9
38 = help: did you mean to capture by reference instead?
40 warning: value captured by `c` is never read
41 --> $DIR/liveness-upvars.rs:36:9
46 = help: did you mean to capture by reference instead?
48 warning: unused variable: `c`
49 --> $DIR/liveness-upvars.rs:42:9
54 = help: did you mean to capture by reference instead?
56 warning: value assigned to `c` is never read
57 --> $DIR/liveness-upvars.rs:45:9
62 = help: maybe it is overwritten before being read?
64 warning: unused variable: `c`
65 --> $DIR/liveness-upvars.rs:45:9
70 = help: did you mean to capture by reference instead?
72 warning: value assigned to `c` is never read
73 --> $DIR/liveness-upvars.rs:58:9
78 = help: maybe it is overwritten before being read?
80 warning: value assigned to `c` is never read
81 --> $DIR/liveness-upvars.rs:64:9
86 = help: maybe it is overwritten before being read?
88 warning: value assigned to `d` is never read
89 --> $DIR/liveness-upvars.rs:73:13
94 = help: maybe it is overwritten before being read?
96 warning: value assigned to `e` is never read
97 --> $DIR/liveness-upvars.rs:77:13
102 = help: maybe it is overwritten before being read?
104 warning: value assigned to `e` is never read
105 --> $DIR/liveness-upvars.rs:79:13
110 = help: maybe it is overwritten before being read?
112 warning: unused variable: `e`
113 --> $DIR/liveness-upvars.rs:77:13
118 = help: did you mean to capture by reference instead?
120 warning: value assigned to `v` is never read
121 --> $DIR/liveness-upvars.rs:87:13
123 LL | v = T::default();
126 = help: maybe it is overwritten before being read?
128 warning: value assigned to `z` is never read
129 --> $DIR/liveness-upvars.rs:99:17
131 LL | z = T::default();
134 = help: maybe it is overwritten before being read?
136 warning: unused variable: `z`
137 --> $DIR/liveness-upvars.rs:99:17
139 LL | z = T::default();
142 = help: did you mean to capture by reference instead?
144 warning: value assigned to `state` is never read
145 --> $DIR/liveness-upvars.rs:125:9
150 = help: maybe it is overwritten before being read?
152 warning: value assigned to `state` is never read
153 --> $DIR/liveness-upvars.rs:128:9
158 = help: maybe it is overwritten before being read?
160 warning: unused variable: `state`
161 --> $DIR/liveness-upvars.rs:125:9
166 = help: did you mean to capture by reference instead?
168 warning: value assigned to `s` is never read
169 --> $DIR/liveness-upvars.rs:137:9
174 = help: maybe it is overwritten before being read?
176 warning: value assigned to `s` is never read
177 --> $DIR/liveness-upvars.rs:139:9
182 = help: maybe it is overwritten before being read?
184 warning: 22 warnings emitted