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

10 lines
171 B
Rust
Raw Normal View History

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