Skip to content

版本没兼容导入的模块得使用extern修饰 #5

Description

@AliceLanniste

我使用win10的操作系统,rust-version是1.3.1,cargo test时候,报出如下错误

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
  --> src\lib.rs:50:9
   |
34 | mod compaction;
   | --------------- not an extern crate passed with `--extern`
...
50 | pub use compaction::ManualCompaction;
   |         ^^^^^^^^^^
   |
note: this import refers to the module defined here
  --> src\lib.rs:34:1
   |
34 | mod compaction;
   | ^^^^^^^^^^^^^^^

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
  --> src\lib.rs:51:9
   |
35 | pub mod db;
   | ----------- not an extern crate passed with `--extern`
...
51 | pub use db::{WickDB, DB};
   |         ^^
   |
note: this import refers to the module defined here
  --> src\lib.rs:35:1
   |
35 | pub mod db;
   | ^^^^^^^^^^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions