rust/tests/ui/extern/extern-crate-visibility.stderr

36 lines
950 B
Plaintext
Raw Normal View History

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;
| ^^^^ private crate import
|
note: the crate import `core` is defined here
--> $DIR/extern-crate-visibility.rs:2:5
|
LL | extern crate core;
| ^^^^^^^^^^^^^^^^^^
help: consider importing this module instead
|
LL | use std::cell;
| ~~~~~~~~~
2018-08-08 07:28:26 -05: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);
| ^^^^ private crate import
|
note: the crate import `core` is defined here
--> $DIR/extern-crate-visibility.rs:2:5
|
LL | extern crate core;
| ^^^^^^^^^^^^^^^^^^
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`.