You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0412]: cannot find type `NotDefined` in this scope
--> src/main.rs:2:20
|
2 | struct Foo<'a>(&'a NotDefined);
| ^^^^^^^^^^ not found in this scope
error[E0204]: the trait `Copy` may not be implemented for this type
--> src/main.rs:1:17
|
1 | #[derive(Clone, Copy)]
| ^^^^
2 | struct Foo<'a>(&'a NotDefined);
| --------------- this field does not implement `Copy`
Many warnings can end up between these two, so somebody who starts reading errors from the bottom up can become very confused.
The text was updated successfully, but these errors were encountered:
…derive, r=estebank
Better error reporting in Copy derive
In Copy derive, report all fulfillment erros when present and do not report errors for types tainted with `TyErr`. Also report all fields which are not Copy rather than just the first.
Also refactored `fn fully_normalize`, removing the not very useful helper function along with a FIXME to the closed issue #26721 that looks out of context now.
Fixes#50480
r? @estebank
The code
results in
Many warnings can end up between these two, so somebody who starts reading errors from the bottom up can become very confused.
The text was updated successfully, but these errors were encountered: