|&mut:|
wants (Copy
) upvar to be mutable when it shouldn't
#16749
Labels
A-closures
Area: Closures (`|…| { … }`)
STR
Output
Correct me if I'm wrong, but I think
n
shouldn't need to be mutable, becausef
captures (by value) a copy ofn
, and modifies its copy ofn
on each call. Whereas, the outern
remains unchanged.cc @pcwalton
The text was updated successfully, but these errors were encountered: