]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.rs
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / suggestions / missing-bound-in-derive-copy-impl-2.rs
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)]
11 pub struct AABB<K: Debug>{
12     pub loc: Vector2<K>, //~ ERROR the trait bound `K: Copy` is not satisfied
13     pub size: Vector2<K>
14 }
15
16 fn main() {}