diff --git a/src/main.rs b/src/main.rs index d5ac812936b574725caa55fd9c7342ad05bbd3ae..67b1095554313702ca31479d083d21d72e398d82 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,8 @@ use std::marker::Sized; #[derive(Debug, Copy, Clone)] #[repr(C)] -struct Point { + +struct Plain { x: u32, y: u32, } @@ -30,7 +31,7 @@ where trait OkInState {} impl OkInState for .. {} -impl !OkInState for Point {} +impl !OkInState for Plain {} // You cannot implement it yourself //impl OkInState for Point {} @@ -47,7 +48,7 @@ where struct X {} fn main() { - let mut p = Point { x: 0, y: 1 }; + let mut p = Plain { x: 0, y: 1 }; let _c = Cont { data: X {} }; let _c = Cont { data: p }; println!(" p {:?}", p);