Skip to content

Commit ca48031

Browse files
committed
Update trivially_copy_pass_by_ref with Trait stderr output
1 parent 92f7f90 commit ca48031

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/ui/trivially_copy_pass_by_ref.stderr

+13-1
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,17 @@ error: this argument is passed by reference, but would be more efficient if pass
7878
84 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
7979
| ^^^^ help: consider passing by value instead: `Baz`
8080

81-
error: aborting due to 13 previous errors
81+
error: this argument is passed by reference, but would be more efficient if passed by value
82+
--> $DIR/trivially_copy_pass_by_ref.rs:89:34
83+
|
84+
89 | fn trait_method(&self, _foo: &Foo);
85+
| ^^^^ help: consider passing by value instead: `Foo`
86+
87+
error: this argument is passed by reference, but would be more efficient if passed by value
88+
--> $DIR/trivially_copy_pass_by_ref.rs:93:37
89+
|
90+
93 | fn trait_method2(&self, _color: &Color);
91+
| ^^^^^^ help: consider passing by value instead: `Color`
92+
93+
error: aborting due to 15 previous errors
8294

0 commit comments

Comments
 (0)