]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/toml_trivially_copy/test.stderr
Auto merge of #7534 - LeSeulArtichaut:7517-closure-too-many-lines, r=flip1995
[rust.git] / tests / ui-toml / toml_trivially_copy / test.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/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