rust/tests/ui/suggestions/missing-bound-in-manual-copy-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
165 B
Rust
Raw Normal View History

// run-rustfix
#[derive(Clone)]
struct Wrapper<T>(T);
impl<S> Copy for Wrapper<S> {}
2023-03-07 17:55:51 -06:00
//~^ ERROR the trait `Copy` cannot be implemented for this type
fn main() {}