]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0505]: cannot move out of `x` because it is borrowed |
0731742a | 2 | --> $DIR/associated-types-outlives.rs:22:14 |
b7449926 | 3 | | |
9ffffee4 FG |
4 | LL | F: for<'a> FnOnce(<T as Foo<'a>>::Bar)>(x: T, f: F) { |
5 | | - binding `x` declared here | |
6 | ... | |
b7449926 | 7 | LL | 's: loop { y = denormalise(&x); break } |
48663c56 | 8 | | -- borrow of `x` occurs here |
532ac7d7 | 9 | LL | drop(x); |
b7449926 | 10 | | ^ move out of `x` occurs here |
48663c56 XL |
11 | LL | return f(y); |
12 | | - borrow later used here | |
b7449926 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0505`. |