我進口創造time
和我在使用其他包裝箱也使用了,因爲這(進口)time
,我有一個錯誤:多個匹配的板條箱`time`但真不是個版本指定
/Users/alex/Documents/projects/rust/my_project/src/lib.rs:2:1: 2:19 error: multiple matching crates for `time`
/Users/alex/Documents/projects/rust/my_project/src/lib.rs:2 extern crate time;
^~~~~~~~~~~~~~~~~~
note: candidates:
note: path: /usr/local/lib/rustlib/x86_64-apple-darwin/lib/libtime-4e7c5e5c.dylib
note: path: /usr/local/lib/rustlib/x86_64-apple-darwin/lib/libtime-4e7c5e5c.rlib
note: crate name: time
note: path: /Users/alex/Documents/projects/rust/my_project/target/deps/libtime-8fdb58a7632ec071.rlib
note: crate name: time
/Users/alex/Documents/projects/rust/my_project/src/lib.rs:2:1: 2:19 error: can't find crate for `time`
/Users/alex/Documents/projects/rust/my_project/src/lib.rs:2 extern crate time;
^~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
如果我註釋掉time
我也會遇到一個錯誤,以至於找不到time
。上面的錯誤甚至不能解釋time
的版本是什麼。我應該從磁盤中刪除哪一個?
您是否在使用貨物? – Levans 2014-11-23 15:27:06
@Levans,是的...... – 2014-11-23 16:09:43