1 error: this argument is passed by reference, but would be more efficient if passed by value
4 LL | fn bad(x: &u16, y: &Foo) {}
5 | ^^^^ help: consider passing by value instead: `u16`
7 = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
9 error: this argument is passed by reference, but would be more efficient if passed by value
10 --> $DIR/test.rs:11:20
12 LL | fn bad(x: &u16, y: &Foo) {}
13 | ^^^^ help: consider passing by value instead: `Foo`
15 error: aborting due to 2 previous errors