diff options
Diffstat (limited to 'syntax/error.rs')
-rw-r--r-- | syntax/error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/syntax/error.rs b/syntax/error.rs index a6723293..f40c4a8e 100644 --- a/syntax/error.rs +++ b/syntax/error.rs @@ -21,6 +21,7 @@ pub static ERRORS: &[Error] = &[ DISCRIMINANT_OVERFLOW, DOT_INCLUDE, DOUBLE_UNDERSCORE, + RESERVED_LIFETIME, RUST_TYPE_BY_VALUE, UNSUPPORTED_TYPE, USE_NOT_ALLOWED, @@ -68,6 +69,12 @@ pub static DOUBLE_UNDERSCORE: Error = Error { note: Some("identifiers containing double underscore are reserved in C++"), }; +pub static RESERVED_LIFETIME: Error = Error { + msg: "invalid lifetime parameter name: `'static`", + label: Some("'static is a reserved lifetime name"), + note: None, +}; + pub static RUST_TYPE_BY_VALUE: Error = Error { msg: "opaque Rust type by value is not supported", label: None, |