diff --git a/src/main.rs b/src/main.rs index 478bb44..9305f32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,4 +135,11 @@ fn main() { v.push(Geometry::Plane(plane1)); v.push(Geometry::Sphere(sphere2)); v.push(Geometry::Sphere(sphere3)); + + for geo in v { + match geo { + Geometry::Sphere(s) => println!("A Sphere"), + Geometry::Plane(p) => println!("A Plane"), + } + } }