]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / higher-rank-trait-bounds / hrtb-debruijn-in-receiver.stderr
1 error[E0499]: cannot borrow `foo` as mutable more than once at a time
2   --> $DIR/hrtb-debruijn-in-receiver.rs:17:5
3    |
4 LL |     foo.insert();
5    |     ------------ first mutable borrow occurs here
6 LL |     foo.insert();
7    |     ^^^^^^^^^^^^
8    |     |
9    |     second mutable borrow occurs here
10    |     first borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0499`.