]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18566.stderr
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-18566.stderr
1 error[E0499]: cannot borrow `*s` as mutable more than once at a time
2   --> $DIR/issue-18566.rs:23:19
3    |
4 LL |     MyPtr(s).poke(s);
5    |           -  ---- ^ second mutable borrow occurs here
6    |           |  |
7    |           |  first borrow later used by call
8    |           first mutable borrow occurs here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0499`.