Hi Rustaceans,
A newbie here.
Compiling cargo-generate v0.14.0
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
--> /Users/nsimaria/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-generate-0.14.0/src/hooks/mod.rs:19:6
|
19 | impl<F: FnOnce()> CleanupJob<F> {
| ^
20 | pub const fn new(f: F) -> Self {
| ------------------------------ function declared as const here
|
= note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `cargo-generate` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-generate v0.14.0`, intermediate artifacts can be found at `/var/folders/gx/4vp7fh6905nfj7srlsvrn_sc0000gp/T/cargo-install27Jl0J`
Caused by:
build failed
My ENV.
rustc 1.60.0 (7737e0b5c 2022-04-04)
cargo 1.60.0 (d1fd9fe2c 2022-03-01)
Mac OS Monterey
Apple M1 Pro