rust/tests/ui/feature-gates/feature-gate-extern_absolute_paths.stderr

30 lines
932 B
Plaintext
Raw Normal View History

error[E0432]: unresolved import `core`
2018-12-25 08:56:47 -07:00
--> $DIR/feature-gate-extern_absolute_paths.rs:1:5
|
2019-03-09 15:03:44 +03:00
LL | use core::default;
2019-08-05 15:50:37 +01:00
| ^^^^ maybe a missing crate `core`?
|
= help: consider adding `extern crate core` to use the `core` crate
2019-08-05 15:50:37 +01:00
error[E0433]: failed to resolve: maybe a missing crate `core`?
2018-12-25 08:56:47 -07:00
--> $DIR/feature-gate-extern_absolute_paths.rs:4:19
|
2019-03-09 15:03:44 +03:00
LL | let _: u8 = ::core::default::Default();
2019-08-05 15:50:37 +01:00
| ^^^^ maybe a missing crate `core`?
|
= help: consider adding `extern crate core` to use the `core` crate
help: consider importing this module
|
LL + use std::default;
|
help: if you import `default`, refer to it directly
|
LL - let _: u8 = ::core::default::Default();
LL + let _: u8 = default::Default();
|
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0432, E0433.
2018-03-03 15:59:40 +01:00
For more information about an error, try `rustc --explain E0432`.