1 error: replacing text with itself
2 --> $DIR/no_effect_replace.rs:4:13
4 LL | let _ = "12345".replace('1', "1");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::no-effect-replace` implied by `-D warnings`
9 error: replacing text with itself
10 --> $DIR/no_effect_replace.rs:5:13
12 LL | let _ = "12345".replace("12", "12");
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: replacing text with itself
16 --> $DIR/no_effect_replace.rs:6:13
18 LL | let _ = String::new().replace("12", "12");
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: replacing text with itself
22 --> $DIR/no_effect_replace.rs:8:13
24 LL | let _ = "12345".replacen('1', "1", 1);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: replacing text with itself
28 --> $DIR/no_effect_replace.rs:9:13
30 LL | let _ = "12345".replacen("12", "12", 1);
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: replacing text with itself
34 --> $DIR/no_effect_replace.rs:10:13
36 LL | let _ = String::new().replacen("12", "12", 1);
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: replacing text with itself
40 --> $DIR/no_effect_replace.rs:16:13
42 LL | let _ = "hello".replace(&x.f(), &x.f());
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: replacing text with itself
46 --> $DIR/no_effect_replace.rs:19:13
48 LL | let _ = "hello".replace(&y(), &y());
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: aborting due to 8 previous errors