Lines Matching defs:error
2 use crate::error::{self, Error};
12 /// automatically construct an appropriate error message based on the token
13 /// alternatives that get peeked. If you are producing your own error message,
35 /// // On invalid input, lookahead gives us a reasonable error message.
37 /// // error: expected one of: identifier, lifetime, `const`
57 /// Err(lookahead.error())
108 /// Triggers an error at the current position of the parse stream.
110 /// The error message will identify all of the expected token types that
112 pub fn error(self) -> Error {
124 error::new_at(self.scope, self.cursor, message)
128 error::new_at(self.scope, self.cursor, message)
133 error::new_at(self.scope, self.cursor, message)