]>
git.proxmox.com Git - rustc.git/blob - tests/ui/opt-in-copy.rs
3 struct IWantToCopyThis
{
4 but_i_cant
: CantCopyThis
,
7 impl Copy
for IWantToCopyThis {}
8 //~^ ERROR the trait `Copy` may not be implemented for this type
10 enum CantCopyThisEither
{
15 enum IWantToCopyThisToo
{
16 ButICant(CantCopyThisEither
),
19 impl Copy
for IWantToCopyThisToo {}
20 //~^ ERROR the trait `Copy` may not be implemented for this type