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
Compiling playground v0.0.1 (file:///playground)
error[E0507]: cannot move out of borrowed content
--> src/main.rs:10:19
|
10 | pub struct MyType(Box<MyTrait>);
| ^^^^^^^^^^^^^ cannot move out of borrowed content
error: aborting due to 2 previous errors
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
Three problems:
The compiler reports that there are two errors, but it only lists one. (This problem does not appear in the current Nightly compiler, only in Beta and Stable.)
The error message doesn't fit with the span provided. This error is usually associated with a statement or expression but here is given for a struct component.
I don't see why the derive should not work.
Searching for similar issues, this one may be a duplicate/combination of #39128 and #31740.
The text was updated successfully, but these errors were encountered:
Code:
Output:
Three problems:
The compiler reports that there are two errors, but it only lists one. (This problem does not appear in the current Nightly compiler, only in Beta and Stable.)
The error message doesn't fit with the span provided. This error is usually associated with a statement or expression but here is given for a struct component.
I don't see why the derive should not work.
Searching for similar issues, this one may be a duplicate/combination of #39128 and #31740.
The text was updated successfully, but these errors were encountered: