2020-01-12 13:20:57 +00:00
|
|
|
error[E0603]: crate import `core` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/extern-crate-visibility.rs:6:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use foo::core::cell;
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^^^^ private crate import
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
2020-01-12 13:20:57 +00:00
|
|
|
note: the crate import `core` is defined here
|
2020-01-12 13:04:03 +00:00
|
|
|
--> $DIR/extern-crate-visibility.rs:2:5
|
|
|
|
|
|
|
|
|
LL | extern crate core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2023-06-16 19:44:06 +00:00
|
|
|
help: consider importing this module instead
|
|
|
|
|
|
|
|
|
LL | use std::cell;
|
|
|
|
| ~~~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-12 13:20:57 +00:00
|
|
|
error[E0603]: crate import `core` is private
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/extern-crate-visibility.rs:9:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | foo::core::cell::Cell::new(0);
|
2020-03-22 22:36:54 +00:00
|
|
|
| ^^^^ private crate import
|
2020-01-12 13:04:03 +00:00
|
|
|
|
|
2020-01-12 13:20:57 +00:00
|
|
|
note: the crate import `core` is defined here
|
2020-01-12 13:04:03 +00:00
|
|
|
--> $DIR/extern-crate-visibility.rs:2:5
|
|
|
|
|
|
|
|
|
LL | extern crate core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2023-06-16 19:44:06 +00:00
|
|
|
help: consider importing this struct instead
|
|
|
|
|
|
|
|
|
LL | std::cell::Cell::new(0);
|
|
|
|
| ~~~~~~~~~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0603`.
|