]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
2 | --> $DIR/test.rs:15:11 | |
3 | | | |
4 | LL | fn bad(x: &u16, y: &Foo) {} | |
5 | | ^^^^ help: consider passing by value instead: `u16` | |
6 | | | |
7 | note: the lint level is defined here | |
8 | --> $DIR/test.rs:4:9 | |
9 | | | |
10 | LL | #![deny(clippy::trivially_copy_pass_by_ref)] | |
11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
12 | ||
13 | error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) | |
14 | --> $DIR/test.rs:15:20 | |
15 | | | |
16 | LL | fn bad(x: &u16, y: &Foo) {} | |
17 | | ^^^^ help: consider passing by value instead: `Foo` | |
18 | ||
19 | error: aborting due to 2 previous errors | |
20 |