]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | warning: useless assignment of variable of type `i32` to itself |
2 | --> $DIR/self-assign.rs:10:5 | |
3 | | | |
4 | LL | x = x; | |
5 | | ^^^^^ | |
6 | | | |
7 | note: the lint level is defined here | |
8 | --> $DIR/self-assign.rs:6:9 | |
9 | | | |
10 | LL | #![warn(dead_code)] | |
11 | | ^^^^^^^^^ | |
12 | ||
13 | warning: useless assignment of variable of type `i32` to itself | |
14 | --> $DIR/self-assign.rs:13:5 | |
15 | | | |
16 | LL | x = (x); | |
17 | | ^^^^^^^ | |
18 | ||
19 | warning: useless assignment of variable of type `S` to itself | |
20 | --> $DIR/self-assign.rs:22:5 | |
21 | | | |
22 | LL | s = s; | |
23 | | ^^^^^ | |
24 | ||
25 | warning: useless assignment of field of type `&str` to itself | |
26 | --> $DIR/self-assign.rs:25:5 | |
27 | | | |
28 | LL | s.f = s.f; | |
29 | | ^^^^^^^^^ | |
30 | ||
31 | warning: useless assignment of field of type `Box<i32>` to itself | |
32 | --> $DIR/self-assign.rs:34:5 | |
33 | | | |
34 | LL | n3.n.0.n.x = n3.n.0.n.x; | |
35 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
36 | ||
37 | warning: useless assignment of field of type `i32` to itself | |
38 | --> $DIR/self-assign.rs:38:5 | |
39 | | | |
40 | LL | t.1.0.2.1 = t.1.0.2.1; | |
41 | | ^^^^^^^^^^^^^^^^^^^^^ | |
42 | ||
43 | warning: 6 warnings emitted | |
44 |