diff options
Diffstat (limited to 'syntax/check.rs')
-rw-r--r-- | syntax/check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/check.rs b/syntax/check.rs index 29013cb2..fcd5f9a5 100644 --- a/syntax/check.rs +++ b/syntax/check.rs @@ -337,7 +337,7 @@ fn check_api_type(cx: &mut Check, ety: &ExternType) { cx.error(derive, msg); } - if let Some(lifetime) = ety.lifetimes.first() { + if let Some(lifetime) = ety.generics.lifetimes.first() { cx.error(lifetime, "extern type with lifetimes is not supported yet"); } @@ -445,7 +445,7 @@ fn check_api_type_alias(cx: &mut Check, alias: &TypeAlias) { cx.error(derive, msg); } - if let Some(lifetime) = alias.lifetimes.first() { + if let Some(lifetime) = alias.generics.lifetimes.first() { cx.error(lifetime, "extern type with lifetimes is not supported yet"); } } |