-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed as not planned
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-dyn_compatible_for_dispatch`#![feature(dyn_compatible_for_dispatch)]`; formerly `object_safe_for_dispatch``#![feature(dyn_compatible_for_dispatch)]`; formerly `object_safe_for_dispatch`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code:
struct S(Box<dyn Copy>);
errors with:
error[E0038]: the trait `std::marker::Copy` cannot be made into an object
--> f.rs:1:10
|
1 | struct S(Box<dyn Copy>);
| ^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
But it does not suggest adding the feature gate.
GrayJack
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-dyn_compatible_for_dispatch`#![feature(dyn_compatible_for_dispatch)]`; formerly `object_safe_for_dispatch``#![feature(dyn_compatible_for_dispatch)]`; formerly `object_safe_for_dispatch`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.