Closed Cyberlin closed 3 years ago
暂无
fn main() { let place1 = "hello"; let place2 = "hello".to_string(); let other = place1; println!("{:?}", other); let other = place2; println!("{:?}", other);//Err: other value used here after move }
实际上运行没有报错
$ rustc -V rustc 1.52.1 (9bc8c42bb 2021-05-09)
代码注释错误
多谢反馈,这个问题已经重复反馈了,也在后来的印刷版修复了。可以对照下已提交的issues。 这个示例本来是要 示范 编译错误的,但是后来在交稿的时候,我又把这个示例的错误给改回来了,乌龙了。
页码与行数
文本或排版错误
代码注释错误
实际上运行没有报错
Rust版本
错误信息