]> git.lizzy.rs Git - rust.git/blob - tests/ui/trivially_copy_pass_by_ref.stderr
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / trivially_copy_pass_by_ref.stderr
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
3    |
4 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
5    |           ^^^^ help: consider passing by value instead: `u32`
6    |
7    = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
8
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
11    |
12 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
13    |                    ^^^^ help: consider passing by value instead: `Foo`
14
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
17    |
18 LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
19    |                             ^^^^ help: consider passing by value instead: `Baz`
20
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
23    |
24 LL |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
25    |            ^^^^^ help: consider passing by value instead: `self`
26
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
29    |
30 LL |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
31    |                      ^^^^ help: consider passing by value instead: `u32`
32
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
35    |
36 LL |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
37    |                               ^^^^ help: consider passing by value instead: `Foo`
38
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
41    |
42 LL |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
43    |                                        ^^^^ help: consider passing by value instead: `Baz`
44
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
47    |
48 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
49    |                ^^^^ help: consider passing by value instead: `u32`
50
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
53    |
54 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
55    |                         ^^^^ help: consider passing by value instead: `Foo`
56
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
59    |
60 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
61    |                                  ^^^^ help: consider passing by value instead: `Baz`
62
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
65    |
66 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
67    |                ^^^^ help: consider passing by value instead: `u32`
68
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
71    |
72 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
73    |                         ^^^^ help: consider passing by value instead: `Foo`
74
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
77    |
78 LL |     fn bad2(x: &u32, y: &Foo, z: &Baz) {}
79    |                                  ^^^^ help: consider passing by value instead: `Baz`
80
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
83    |
84 LL |     fn trait_method(&self, _foo: &Foo);
85    |                                  ^^^^ help: consider passing by value instead: `Foo`
86
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
89    |
90 LL |     fn trait_method2(&self, _color: &Color);
91    |                                     ^^^^^^ help: consider passing by value instead: `Color`
92
93 error: aborting due to 15 previous errors
94