about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-03-08 21:14:11 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-03-08 21:14:11 +0100
commitc8e47f9a72b0c3009e17b4fb66667931ac335026 (patch)
tree9f7d802999c6108a79b228f12a8e8fb07c5914cf /tests
parent79013f813dde402c9d032dbf189f33221ed33c64 (diff)
downloadrust-c8e47f9a72b0c3009e17b4fb66667931ac335026.tar.gz
rust-c8e47f9a72b0c3009e17b4fb66667931ac335026.zip
Update `needless_pass_by_value` stderr
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/needless_pass_by_value.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/needless_pass_by_value.stderr b/tests/ui/needless_pass_by_value.stderr
index 7aea725d50b..987bfc4affc 100644
--- a/tests/ui/needless_pass_by_value.stderr
+++ b/tests/ui/needless_pass_by_value.stderr
@@ -180,7 +180,7 @@ LL | fn more_fun(items: impl Club<'static, i32>) {}
    |                    ^^^^^^^^^^^^^^^^^^^^^^^ help: consider taking a reference instead: `&impl Club<'static, i32>`
 
 error: this argument is passed by value, but not consumed in the function body
-  --> tests/ui/needless_pass_by_value.rs:187:24
+  --> tests/ui/needless_pass_by_value.rs:194:24
    |
 LL | fn option_inner_ref(x: Option<String>) {
    |                        ^^^^^^^^^^^^^^ help: consider taking a reference instead: `Option<&String>`