// This file is part of ICU4X. For terms of use, please see the file // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). #![no_main] // https://github.com/unicode-org/icu4x/issues/395 icu_benchmark_macros::instrument!(); use icu_benchmark_macros::println; use icu::list::{ListFormatter, ListFormatterOptions, ListLength}; use icu::locale::locale; fn main() { let list_formatter = ListFormatter::try_new_and( locale!("es").into(), ListFormatterOptions::default().with_length(ListLength::Wide), ) .unwrap(); println!( "{}", list_formatter.format(["EspaƱa", "Francia", "Suiza", "Italia"].iter()) ); }