1 1| |#![allow(unused_assignments)]
2 2| |// expect-exit-status-1
8 8| |impl Drop for Firework {
9 9| 2| fn drop(&mut self) {
10 10| 2| println!("BOOM times {}!!!", self.strength);
14 14| 1|fn main() -> Result<(),u8> {
15 15| 1| let _firecracker = Firework { strength: 1 };
17 17| 1| let _tnt = Firework { strength: 100 };
20 20| 1| println!("Exiting with error...");
24 24| | let _ = Firework { strength: 1000 };
29 29| |// Expected program output:
30 30| |// Exiting with error...
31 31| |// BOOM times 100!!!
32 32| |// BOOM times 1!!!