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