]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.fixed
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / suggestions / missing-bound-in-derive-copy-impl-3.fixed
1 //run-rustfix
2 use std::fmt::Debug;
3
4 #[derive(Debug, Copy, Clone)]
5 pub struct Vector2<T: Debug + Copy + Clone>{
6 pub x: T,
7 pub y: T
8 }
9
10 #[derive(Debug, Copy, Clone)] //~ ERROR the trait `Copy` may not be implemented for this type
11 pub struct AABB<K: Copy + Debug>{
12 pub loc: Vector2<K>,
13 pub size: Vector2<K>
14 }
15
16 fn main() {}