]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui-toml/toml_trivially_copy/test.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui-toml / toml_trivially_copy / test.stderr
CommitLineData
f20569fa
XL
1error: 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 |
4LL | fn bad(x: &u16, y: &Foo) {}
5 | ^^^^ help: consider passing by value instead: `u16`
6 |
7note: the lint level is defined here
8 --> $DIR/test.rs:4:9
9 |
10LL | #![deny(clippy::trivially_copy_pass_by_ref)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: 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 |
16LL | fn bad(x: &u16, y: &Foo) {}
17 | ^^^^ help: consider passing by value instead: `Foo`
18
19error: aborting due to 2 previous errors
20