#Cant run a new project after adding bevy to it. bevy_reflect_drive let...else statements are unstabl

10 messages · Page 1 of 1 (latest)

dense junco
#
error[E0658]: `let...else` statements are unstable
  --> /home/bv/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_reflect_derive-0.9.1/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

I was reading the bevy book. I did

cargo new bevy_1
cargo add bevy
cargo run

And the build fails, it gives me 2 more similar errors for the same module. I am new to both rust and bevy, so not sure if I am doing something wrong.

brave raven
#

compiler version?

flint veldt
#

you need to run rustup update

dense junco
#

1.64.0

brave raven
#

1.65+

#

for 0.9

dense junco
#

Okay, thanks

brave raven
#

may have to cargo clean if it still fails after update

dense junco
#

Is there a way to automatically update rust with my system update? Or for cargo to tell me a new version is available like npm does.

dense junco