Lines Matching defs:error
107 // errors to be Send and Sync to play nicely with ecosystem crates for error
128 /// Usually the [`ParseStream::error`] method will be used instead, which
132 /// Use `Error::new` when the error needs to be triggered on some span other
135 /// [`ParseStream::error`]: crate::parse::ParseBuffer::error
149 /// // Trigger an error not on the current position of the stream,
174 /// Creates an error with the specified message spanning the given syntax
182 /// `Error::new_spanned` may provide a higher-quality error message on
186 /// `ParseStream::error`)!
205 /// The source location of the error.
218 /// Render the error as an invocation of [`compile_error!`].
232 /// Render the error as an invocation of [`compile_error!`].
268 /// Add another error message to self such that when `to_compile_error()` is
403 impl std::error::Error for Error {}