/// Suppose we are trying to give a name to the lifetime of the
/// reference `x`:
///
- /// ```
+ /// ```ignore (pseudo-rust)
/// fn foo(x: &u32) { .. }
/// ```
///
Some(RegionNameHighlight::MatchedAdtAndSegment(lifetime_span))
}
- hir::LifetimeName::ImplicitObjectLifetimeDefault | hir::LifetimeName::Implicit(_) => {
+ hir::LifetimeName::ImplicitObjectLifetimeDefault | hir::LifetimeName::Implicit => {
// In this case, the user left off the lifetime; so
// they wrote something like:
//
/// e.g. given the function:
///
/// ```
- /// async fn foo() -> i32 {}
+ /// async fn foo() -> i32 { 2 }
/// ```
///
/// this function, given the lowered return type of `foo`, an [`OpaqueDef`] that implements `Future<Output=i32>`,