1 warning: value assigned to `last` is never read
2 --> $DIR/liveness-upvars.rs:10:9
7 note: the lint level is defined here
8 --> $DIR/liveness-upvars.rs:4:9
12 = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
13 = help: maybe it is overwritten before being read?
15 warning: unused variable: `last`
16 --> $DIR/liveness-upvars.rs:10:9
21 note: the lint level is defined here
22 --> $DIR/liveness-upvars.rs:4:9
26 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
27 = help: did you mean to capture by reference instead?
29 warning: unused variable: `sum`
30 --> $DIR/liveness-upvars.rs:22:9
35 = help: did you mean to capture by reference instead?
37 warning: value captured by `c` is never read
38 --> $DIR/liveness-upvars.rs:32:9
43 = help: did you mean to capture by reference instead?
45 warning: value captured by `c` is never read
46 --> $DIR/liveness-upvars.rs:36:9
51 = help: did you mean to capture by reference instead?
53 warning: unused variable: `c`
54 --> $DIR/liveness-upvars.rs:42:9
59 = help: did you mean to capture by reference instead?
61 warning: value assigned to `c` is never read
62 --> $DIR/liveness-upvars.rs:45:9
67 = help: maybe it is overwritten before being read?
69 warning: unused variable: `c`
70 --> $DIR/liveness-upvars.rs:45:9
75 = help: did you mean to capture by reference instead?
77 warning: value assigned to `c` is never read
78 --> $DIR/liveness-upvars.rs:58:9
83 = help: maybe it is overwritten before being read?
85 warning: value assigned to `c` is never read
86 --> $DIR/liveness-upvars.rs:64:9
91 = help: maybe it is overwritten before being read?
93 warning: value assigned to `d` is never read
94 --> $DIR/liveness-upvars.rs:73:13
99 = help: maybe it is overwritten before being read?
101 warning: value assigned to `e` is never read
102 --> $DIR/liveness-upvars.rs:77:13
107 = help: maybe it is overwritten before being read?
109 warning: value assigned to `e` is never read
110 --> $DIR/liveness-upvars.rs:79:13
115 = help: maybe it is overwritten before being read?
117 warning: unused variable: `e`
118 --> $DIR/liveness-upvars.rs:77:13
123 = help: did you mean to capture by reference instead?
125 warning: value assigned to `v` is never read
126 --> $DIR/liveness-upvars.rs:87:13
128 LL | v = T::default();
131 = help: maybe it is overwritten before being read?
133 warning: value assigned to `z` is never read
134 --> $DIR/liveness-upvars.rs:99:17
136 LL | z = T::default();
139 = help: maybe it is overwritten before being read?
141 warning: unused variable: `z`
142 --> $DIR/liveness-upvars.rs:99:17
144 LL | z = T::default();
147 = help: did you mean to capture by reference instead?
149 warning: value assigned to `state` is never read
150 --> $DIR/liveness-upvars.rs:125:9
155 = help: maybe it is overwritten before being read?
157 warning: value assigned to `state` is never read
158 --> $DIR/liveness-upvars.rs:128:9
163 = help: maybe it is overwritten before being read?
165 warning: unused variable: `state`
166 --> $DIR/liveness-upvars.rs:125:9
171 = help: did you mean to capture by reference instead?
173 warning: value assigned to `s` is never read
174 --> $DIR/liveness-upvars.rs:137:9
179 = help: maybe it is overwritten before being read?
181 warning: value assigned to `s` is never read
182 --> $DIR/liveness-upvars.rs:139:9
187 = help: maybe it is overwritten before being read?
189 warning: 22 warnings emitted