]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-bound-in-manual-copy-impl.fixed
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / missing-bound-in-manual-copy-impl.fixed
1 // run-rustfix
2
3 #[derive(Clone)]
4 struct Wrapper<T>(T);
5
6 impl<S: Copy> Copy for Wrapper<S> {}
7 //~^ ERROR the trait `Copy` may not be implemented for this type
8
9 fn main() {}