about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorWayne Warren <wayne.warren.s@gmail.com>2018-11-20 19:59:02 -0600
committerWayne Warren <wayne.warren.s@gmail.com>2018-11-21 07:52:02 -0600
commitca4803101f95455b0436cefdf0e7cfecf259ca97 (patch)
tree368fa87513af88f8e6a7aac648558000f1401e48 /tests
parent92f7f9061c1383d6f8f5c8fbf15baa145c653d4c (diff)
downloadrust-ca4803101f95455b0436cefdf0e7cfecf259ca97.tar.gz
rust-ca4803101f95455b0436cefdf0e7cfecf259ca97.zip
Update trivially_copy_pass_by_ref with Trait stderr output
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/trivially_copy_pass_by_ref.stderr14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/ui/trivially_copy_pass_by_ref.stderr b/tests/ui/trivially_copy_pass_by_ref.stderr
index d3610c10ef8..3fb577d3edb 100644
--- a/tests/ui/trivially_copy_pass_by_ref.stderr
+++ b/tests/ui/trivially_copy_pass_by_ref.stderr
@@ -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