]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-bound-in-derive-copy-impl.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / missing-bound-in-derive-copy-impl.rs
1 use std::fmt::Debug;
2
3 #[derive(Debug, Copy, Clone)]
4 pub struct Vector2<T: Debug + Copy + Clone>{
5     pub x: T,
6     pub y: T
7 }
8
9 #[derive(Debug, Copy, Clone)] //~ ERROR the trait `Copy` may not be implemented for this type
10 pub struct AABB<K>{
11     pub loc: Vector2<K>,
12     pub size: Vector2<K>
13 }
14
15 fn main() {}