Add 'static lifetime suggestion when GAT implied 'static requirement from HRTB
This commit is contained in:
parent
38a76f3322
commit
aadd58ef7a
7 changed files with 258 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue