]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/missing-bound-in-manual-copy-impl.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / suggestions / missing-bound-in-manual-copy-impl.rs
1 // run-rustfix
2
3 #[derive(Clone)]
4 struct Wrapper<T>(T);
5
6 impl<S> Copy for Wrapper<S> {}
7 //~^ ERROR the trait `Copy` may not be implemented for this type
8
9 fn main() {}