]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-types/associated-types-outlives.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / associated-types / associated-types-outlives.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2 --> $DIR/associated-types-outlives.rs:22:14
3 |
4 LL | F: for<'a> FnOnce(<T as Foo<'a>>::Bar)>(x: T, f: F) {
5 | - binding `x` declared here
6 ...
7 LL | 's: loop { y = denormalise(&x); break }
8 | -- borrow of `x` occurs here
9 LL | drop(x);
10 | ^ move out of `x` occurs here
11 LL | return f(y);
12 | - borrow later used here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0505`.