3 #![allow(unused_assignments)]
4 // pretty-expanded FIXME #23616
6 #![allow(unused_variables)]
10 Cat { name: String, weight: f64 }
14 let mut a: Animal = Animal::Dog("Cocoa".to_string(), 37.2);
15 a = Animal::Cat{ name: "Spotty".to_string(), weight: 2.7 };
16 // permuting the fields should work too
17 let _c = Animal::Cat { weight: 3.1, name: "Spreckles".to_string() };