Closed chencore closed 3 years ago
(base) ck@ckMacBook-Pro counter % cargo build Compiling libc v0.2.86 Compiling proc-macro2 v1.0.24 Compiling unicode-xid v0.2.1 Compiling autocfg v1.0.1 Compiling syn v1.0.60 Compiling core-foundation-sys v0.8.2 Compiling bitflags v1.2.1 Compiling ahash v0.4.7 Compiling log v0.4.14 Compiling proc-macro-hack v0.5.19 Compiling foreign-types-shared v0.1.1 Compiling fixedbitset v0.2.0 Compiling getrandom v0.1.16 Compiling cfg-if v1.0.0 Compiling byteorder v1.4.2 Compiling memchr v2.3.4 Compiling proc-macro-nested v0.1.7 Compiling semver-parser v0.7.0 Compiling lazy_static v1.4.0 Compiling bit-vec v0.6.3 Compiling futures-sink v0.3.13 Compiling scopeguard v1.1.0 Compiling futures-core v0.3.13 Compiling futures-io v0.3.13 Compiling block v0.1.6 Compiling pin-project-lite v0.2.4 Compiling core-foundation-sys v0.7.0 Compiling smallvec v1.6.1 Compiling rayon-core v1.9.0 Compiling pin-utils v0.1.0 Compiling slab v0.4.2 Compiling futures-task v0.3.13 Compiling ppv-lite86 v0.2.10 Compiling cfg_aliases v0.1.1 Compiling ttf-parser v0.12.0 Compiling copyless v0.1.5 Compiling range-alloc v0.1.2 Compiling ab_glyph_rasterizer v0.1.4 Compiling version_check v0.9.2 Compiling either v1.6.1 Compiling arrayvec v0.5.2 Compiling rustc-hash v1.1.0 Compiling cfg-if v0.1.10 Compiling linked-hash-map v0.5.4 Compiling xi-unicode v0.3.0 Compiling static_assertions v1.1.0 Compiling same-file v1.0.6 Compiling float-ord v0.2.0 Compiling unicode-segmentation v1.7.1 Compiling iced_core v0.3.0 (/Users/chenke/code/rust/iced-master/core) Compiling dispatch v0.2.0 error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`) --> core/src/vector.rs:69:1 | 69 | / impl<T> From<Vector<T>> for [T; 2] 70 | | where 71 | | T: Copy, 72 | | { ... | 75 | | } 76 | | } | |_^ type parameter `T` must be used as the type parameter for some local type | = note: only traits defined in the current crate can be implemented for a type parameter error: aborting due to previous error For more information about this error, try `rustc --explain E0210`. error: Could not compile `iced_core`. warning: build failed, waiting for other jobs to finish... error: build failed
What is your Rust version?
cargo 1.37.0 (9edd08916 2019-08-02)
Your Rust toolchain is more than a year old. Could you try updating it? rustup update may do it.
rustup update
It's OK after rustup update. Thanks