1
Fork 0

Add 'static lifetime suggestion when GAT implied 'static requirement from HRTB

This commit is contained in:
yanchen4791 2023-01-11 00:19:40 -08:00
parent 38a76f3322
commit aadd58ef7a
7 changed files with 258 additions and 4 deletions

View file

@ -100,6 +100,13 @@ impl BoundRegionKind {
None
}
pub fn get_id(&self) -> Option<DefId> {
match *self {
BoundRegionKind::BrNamed(id, _) => return Some(id),
_ => None,
}
}
}
pub trait Article {