Skip to content

Commit

Permalink
Update trivially_copy_pass_by_ref with Trait stderr output
Browse files Browse the repository at this point in the history
  • Loading branch information
waynr committed Nov 21, 2018
1 parent 92f7f90 commit ca48031
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/ui/trivially_copy_pass_by_ref.stderr
Expand Up @@ -78,5 +78,17 @@ error: this argument is passed by reference, but would be more efficient if pass
84 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
| ^^^^ help: consider passing by value instead: `Baz`

error: aborting due to 13 previous errors
error: this argument is passed by reference, but would be more efficient if passed by value
--> $DIR/trivially_copy_pass_by_ref.rs:89:34
|
89 | fn trait_method(&self, _foo: &Foo);
| ^^^^ help: consider passing by value instead: `Foo`

error: this argument is passed by reference, but would be more efficient if passed by value
--> $DIR/trivially_copy_pass_by_ref.rs:93:37
|
93 | fn trait_method2(&self, _color: &Color);
| ^^^^^^ help: consider passing by value instead: `Color`

error: aborting due to 15 previous errors

0 comments on commit ca48031

Please sign in to comment.