Content-Length: 23902 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../iter/../../error_codes/./E0206.html

E0206 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0206

The Copy trait was implemented on a type which is neither a struct, an enum, nor a union.

Erroneous code example:

#![allow(unused)]
fn main() {
#[derive(Copy, Clone)]
struct Bar;

impl Copy for &'static mut Bar { } // error!
}

You can only implement Copy for a struct, an enum, or a union. The previous example will fail because &'static mut Bar is not a struct, an enum, or a union.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../iter/../../error_codes/./E0206.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy