rust/tests/ui/feature-gates/feature-gate-extern_absolute_paths.stderr
Esteban Küber c73b3d20c6 Unify wording of resolve error
Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`".

```
error[E0433]: cannot find `nonexistent` in `existent`
  --> $DIR/custom_attr_multisegment_error.rs:5:13
   |
LL | #[existent::nonexistent]
   |             ^^^^^^^^^^^ could not find `nonexistent` in `existent`
```
2026-02-17 16:51:44 +00:00

34 lines
1,004 B
Text

error[E0432]: unresolved import `core`
--> $DIR/feature-gate-extern_absolute_paths.rs:2:5
|
LL | use core::default;
| ^^^^
| |
| you might be missing crate `core`
| help: try using `std` instead of `core`: `std`
error[E0433]: cannot find `core` in the crate root
--> $DIR/feature-gate-extern_absolute_paths.rs:5:19
|
LL | let _: u8 = ::core::default::Default();
| ^^^^ you might be missing crate `core`
|
help: try using `std` instead of `core`
|
LL - let _: u8 = ::core::default::Default();
LL + let _: u8 = ::std::default::Default();
|
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.
For more information about an error, try `rustc --explain E0432`.