Skip to content

Change filter closure to use move semantics#4670

Closed
rajagopalanand wants to merge 1 commit intorust-lang:mainfrom
rajagopalanand:rajagopalanand-patch-1
Closed

Change filter closure to use move semantics#4670
rajagopalanand wants to merge 1 commit intorust-lang:mainfrom
rajagopalanand:rajagopalanand-patch-1

Conversation

@rajagopalanand
Copy link

@rajagopalanand rajagopalanand commented Feb 8, 2026

Without the move, the function search will not compile with the following message

closure may outlive the current function, but it borrows `query`, which is owned by the current function
may outlive borrowed value `query`

Without the move, the function search will not compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant