diff options
Diffstat (limited to 'src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed')
-rw-r--r-- | src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed b/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed new file mode 100644 index 000000000..32a7215c5 --- /dev/null +++ b/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed @@ -0,0 +1,9 @@ +// run-rustfix + +#[derive(Clone)] +struct Wrapper<T>(T); + +impl<S: Copy> Copy for Wrapper<S> {} +//~^ ERROR the trait `Copy` may not be implemented for this type + +fn main() {} |