Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 编译报错 #133

Closed
johnnyhansen-away opened this issue Nov 4, 2022 · 1 comment
Closed

mac 编译报错 #133

johnnyhansen-away opened this issue Nov 4, 2022 · 1 comment

Comments

@johnnyhansen-away
Copy link

编译时报错:
a@hansen seeker % sudo cargo build --release
error[E0658]: deriving Default on enums is experimental
--> config/src/rule.rs:17:68
|
17 | #[derive(Eq, PartialEq, Copy, Clone, Debug, Hash, PartialOrd, Ord, Default)]
| ^^^^^^^
|
= note: see issue #86985 rust-lang/rust#86985 for more information
= note: this error originates in the derive macro Default (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try rustc --explain E0658.
error: could not compile config due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
a@hansen seeker % rustc --explain E0658

a@hansen seeker % cargo version
cargo 1.60.0 (d1fd9fe2c 2022-03-01)

@gfreezy
Copy link
Owner

gfreezy commented Nov 4, 2022

rust 版本太低了。更新到最新的 stable 版本

@gfreezy gfreezy closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants