summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/toml_trivially_copy/test.stderr
blob: 262d302e72de7871a349f0124777d1d04afeae2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
  --> $DIR/test.rs:15:11
   |
LL | fn bad(x: &u16, y: &Foo) {}
   |           ^^^^ help: consider passing by value instead: `u16`
   |
   = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::trivially_copy_pass_by_ref)]`

error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
  --> $DIR/test.rs:15:20
   |
LL | fn bad(x: &u16, y: &Foo) {}
   |                    ^^^^ help: consider passing by value instead: `Foo`

error: aborting due to 2 previous errors