我开始用贝维了。我去了他们的网站,并开始了设置的事情,但当我去编译不会。
它一直在返回这个错误。
error[E0658]: `let...else` statements are unstable
--> C:\Users\drew0\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_render_macros-0.9.0\src\as_bind_group.rs:119:13
|
119 | / let Some(attr_ident) = attr.path.get_ident() else {
120 | | continue;
121 | | };
| |______________^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `bevy_render_macros` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0658]: `let...else` statements are unstable
--> C:\Users\drew0\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_reflect_derive-0.9.0\src\container_attributes.rs:140:21
|
140 | / let Some(segment) = path.segments.iter().next() else {
141 | | continue;
142 | | };
| |______________________^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information
error[E0658]: `let...else` statements are unstable
--> C:\Users\drew0\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_reflect_derive-0.9.0\src\container_attributes.rs:174:21
|
174 | / let Some(segment) = list.path.segments.iter().next() else {
175 | | continue;
176 | | };
| |______________________^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information
error[E0658]: `let...else` statements are unstable
--> C:\Users\drew0\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_reflect_derive-0.9.0\src\type_uuid.rs:27:9
|
27 | / let Meta::NameValue(name_value) = attribute else {
28 | | continue;
29 | | };
| |__________^
|
= note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information
error: could not compile `bevy_reflect_derive` due to 3 previous errors我已经在vscode中打开了文件,并删除了分号,但是它仍然不编译,并告诉我把它们放回去。我真的很想用贝维做游戏生锈,但这阻止了我。
发布于 2022-11-24 11:19:03
let-else稳定在1.65。您可以运行rustup update获得最新版本。
发布于 2022-11-23 22:01:54
要解决这个问题,你需要更新锈。
https://stackoverflow.com/questions/74553319
复制相似问题