1 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
2 --> $DIR/trivially_copy_pass_by_ref.rs:50:11
4 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
5 | ^^^^ help: consider passing by value instead: `u32`
7 = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
9 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
10 --> $DIR/trivially_copy_pass_by_ref.rs:50:20
12 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
13 | ^^^^ help: consider passing by value instead: `Foo`
15 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
16 --> $DIR/trivially_copy_pass_by_ref.rs:50:29
18 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
19 | ^^^^ help: consider passing by value instead: `Baz`
21 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
22 --> $DIR/trivially_copy_pass_by_ref.rs:57:12
24 LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
25 | ^^^^^ help: consider passing by value instead: `self`
27 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
28 --> $DIR/trivially_copy_pass_by_ref.rs:57:22
30 LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
31 | ^^^^ help: consider passing by value instead: `u32`
33 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
34 --> $DIR/trivially_copy_pass_by_ref.rs:57:31
36 LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
37 | ^^^^ help: consider passing by value instead: `Foo`
39 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
40 --> $DIR/trivially_copy_pass_by_ref.rs:57:40
42 LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
43 | ^^^^ help: consider passing by value instead: `Baz`
45 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
46 --> $DIR/trivially_copy_pass_by_ref.rs:59:16
48 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
49 | ^^^^ help: consider passing by value instead: `u32`
51 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
52 --> $DIR/trivially_copy_pass_by_ref.rs:59:25
54 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
55 | ^^^^ help: consider passing by value instead: `Foo`
57 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
58 --> $DIR/trivially_copy_pass_by_ref.rs:59:34
60 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
61 | ^^^^ help: consider passing by value instead: `Baz`
63 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
64 --> $DIR/trivially_copy_pass_by_ref.rs:71:16
66 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
67 | ^^^^ help: consider passing by value instead: `u32`
69 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
70 --> $DIR/trivially_copy_pass_by_ref.rs:71:25
72 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
73 | ^^^^ help: consider passing by value instead: `Foo`
75 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
76 --> $DIR/trivially_copy_pass_by_ref.rs:71:34
78 LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
79 | ^^^^ help: consider passing by value instead: `Baz`
81 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
82 --> $DIR/trivially_copy_pass_by_ref.rs:75:34
84 LL | fn trait_method(&self, _foo: &Foo);
85 | ^^^^ help: consider passing by value instead: `Foo`
87 error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
88 --> $DIR/trivially_copy_pass_by_ref.rs:79:37
90 LL | fn trait_method2(&self, _color: &Color);
91 | ^^^^^^ help: consider passing by value instead: `Color`
93 error: aborting due to 15 previous errors