about summary refs log tree commit diff
path: root/tests/ui/suggestions/missing-bound-in-manual-copy-impl.fixed
blob: 0382358fbbe3b5b630a126503b4764d50b36431b (plain)
1
2
3
4
5
6
7
8
9
10
//@ run-rustfix
#![allow(dead_code)]

#[derive(Clone)]
struct Wrapper<T>(T);

impl<S: Copy> Copy for Wrapper<S> {}
//~^ ERROR the trait `Copy` cannot be implemented for this type

fn main() {}