summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-ranked/trait-bounds/hrtb-debruijn-in-receiver.stderr
blob: 10904515fd8f5cc4366f7e9e55fbc8ffdcaf3b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0499]: cannot borrow `foo` as mutable more than once at a time
  --> $DIR/hrtb-debruijn-in-receiver.rs:17:5
   |
LL |     foo.insert();
   |     --- first mutable borrow occurs here
LL |     foo.insert();
   |     ^^^
   |     |
   |     second mutable borrow occurs here
   |     first borrow later used here

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0499`.