// 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 ).
use Display;
use Debug;
/// An error returned when parsing a pattern.
///
/// # Examples
/// ```
/// use icu_pattern::{Parser, ParserOptions, ParserError};
///
/// let mut parser = Parser::<usize>::new("{0", ParserOptions {
/// allow_raw_letters: false,
/// });
/// assert_eq!(Err(ParserError::UnclosedPlaceholder), parser.try_next());
/// ```
///
/// # Type parameters
///
/// - `E`: An error of the replacement type which implements [`FromStr`].
///
/// [`FromStr`]: std::str::FromStr