fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
334 B16 linesraw
1//run-rustfix
2use std::fmt::Debug;
3
4#[derive(Debug, Copy, Clone)]
5pub 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` cannot be implemented for this type
11pub struct AABB<K: Copy + Debug>{
12    pub loc: Vector2<K>,
13    pub size: Vector2<K>
14}
15
16fn main() {}