We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both of these r's generate errors about copying noncopyable values, but they should be moves.
r
fn apply<T>(s: str, f: fn(str) -> T) -> T { g(s) {|v| let r = f(v); r } } fn apply2<T>(s: str, f: fn(str) -> T) -> T { g(s, fn&(v: str) -> T { let r = f(v); r }) } fn g<T>(s: str, f: fn(str) -> T) -> T { f(s) } fn main() { }
The text was updated successfully, but these errors were encountered:
94d4dcd
notification groups: add information about how to ping them to the re…
8f19a14
…spective pages (rust-lang#1818)
b624d77
No branches or pull requests
Both of these
r
's generate errors about copying noncopyable values, but they should be moves.The text was updated successfully, but these errors were encountered: