about summary refs log tree commit diff
path: root/src/test/ui/borrowck
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-11-03 09:19:03 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-11-23 12:17:47 -0800
commit4a51f37bcb58b37afb8ea0ac4b8696714787a305 (patch)
treeb663f1fa5c918dd44964829b2eb06f818f064309 /src/test/ui/borrowck
parent9e72e35ceb2af024e8ca6a74442269f7ec739173 (diff)
downloadrust-4a51f37bcb58b37afb8ea0ac4b8696714787a305.tar.gz
rust-4a51f37bcb58b37afb8ea0ac4b8696714787a305.zip
Do not suggest `ref` multiple times for the same binding
Diffstat (limited to 'src/test/ui/borrowck')
-rw-r--r--src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr b/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr
index f58672f0666..d06b3bc1c3e 100644
--- a/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr
+++ b/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr
@@ -88,10 +88,6 @@ help: borrow this binding in the pattern to avoid moving the value
    |
 LL |         ref foo @ Some(Test::Foo | Test::Bar) => (),
    |         +++
-help: borrow this binding in the pattern to avoid moving the value
-   |
-LL |         ref foo @ Some(Test::Foo | Test::Bar) => (),
-   |         +++
 
 error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
   --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:86:5
@@ -148,10 +144,6 @@ help: borrow this binding in the pattern to avoid moving the value
    |
 LL |         ref a @ [.., Some(Test::Foo | Test::Bar)] => (),
    |         +++
-help: borrow this binding in the pattern to avoid moving the value
-   |
-LL |         ref a @ [.., Some(Test::Foo | Test::Bar)] => (),
-   |         +++
 
 error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
   --> $DIR/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs:144:5