You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<anon>:14:7: 14:16 error: capture of moved value: `init`
<anon>:14 Foo::init();
^~~~~~~~~
note: in expansion of closure expansion
<anon>:13:20: 15:6 note: expansion site
<anon>:12:10: 12:14 note: `init` moved here because it has type `Bar`, which is non-copyable
<anon>:12 drop(init);
That doesn't make sense.
The text was updated successfully, but these errors were encountered:
I introduced this bug in #17259 by tracking captures as they were resolved.
At the time I was unaware of secondary resolution requests in non-error paths.
The only one that I've seen since is for a little-known lint (because it's disabled by default, and only ever used in a test which tests that the lint works):
This lint works by resolving the last element of a path after resolving the full path.
If the results match, the lint is triggered. However, in this case, there is a side-effect of upvar capture because that last element happens to match a local variable outside a closure scope.
Results in
That doesn't make sense.
The text was updated successfully, but these errors were encountered: