fn throw_panic(cars: Vec<&str>) { if cars.len() == 0 { panic!("No cars for sale"); } //какая-то реализация... }throw_panic(vec![]);