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