F001

Results 3 issues of F001

感谢 @SmiteWindows 的反馈。 4.3 main 函数这一章节内容有误,具体为:bool 不满足 Termination trait 约束。

Refer to : https://github.com/rust-lang/rust/issues/34417 In std, the linked list was implemented based on `Box` type. But it's wrong. > `Box` uses `Unique`, which requires that it "the referent of the...

bug

13.1 章,闭包的理解: "另一个理解move闭包的方法:它给出了一个拥有自己栈帧的闭包。没有move,一个闭包可能会绑定在创建它的栈帧上,而move闭包则是独立的。例如,这意味着大体上你不能从函数返回一个非move闭包。" 这是错误的。我记得以前改过这种说法,又有人加回来了。 闭包跟栈帧没有任何关系。它仅仅创建了匿名结构体而已。所谓的“捕获”无非是这个匿名结构体初始化时的方式不同而已: by value / by ref / by mut ref

content required
help wanted