rust/tests/ui/borrowck/non-ADT-struct-pattern-box-pattern-ice-121463.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

25 lines
803 B
Text

error[E0433]: cannot find type `E` in this scope
--> $DIR/non-ADT-struct-pattern-box-pattern-ice-121463.rs:6:17
|
LL | let mut a = E::StructVar { boxed: Box::new(5_i32) };
| ^ use of undeclared type `E`
|
help: a trait with a similar name exists
|
LL | let mut a = Eq::StructVar { boxed: Box::new(5_i32) };
| +
error[E0433]: cannot find type `E` in this scope
--> $DIR/non-ADT-struct-pattern-box-pattern-ice-121463.rs:9:9
|
LL | E::StructVar { box boxed } => { }
| ^ use of undeclared type `E`
|
help: a trait with a similar name exists
|
LL | Eq::StructVar { box boxed } => { }
| +
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0433`.