]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/toml_trivially_copy/test.stderr
NFC: fix typos
[rust.git] / tests / ui-toml / toml_trivially_copy / test.stderr
1 error: this argument is passed by reference, but would be more efficient if passed by value
2   --> $DIR/test.rs:11:11
3    |
4 LL | fn bad(x: &u16, y: &Foo) {}
5    |           ^^^^ help: consider passing by value instead: `u16`
6    |
7    = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
8
9 error: this argument is passed by reference, but would be more efficient if passed by value
10   --> $DIR/test.rs:11:20
11    |
12 LL | fn bad(x: &u16, y: &Foo) {}
13    |                    ^^^^ help: consider passing by value instead: `Foo`
14
15 error: aborting due to 2 previous errors
16