Skip to content

Commit df4bfd9

Browse files
committed
Try explaining where Inner is in the signature better
1 parent 30f7878 commit df4bfd9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ fn sanity_check_found_hidden_type<'tcx>(
545545
/// }
546546
/// fn func<'a>(x: &'a ()) -> impl Id<Assoc = impl Sized + 'a> { x }
547547
/// // desugared to
548-
/// fn func<'a>(x: &'a () -> Outer<'a, Assoc = Inner<'a>> {
548+
/// fn func<'a>(x: &'a () -> Outer<'a> where <Outer<'a> as Id>::Assoc = Inner<'a> {
549549
/// // Note that in contrast to other nested items, RPIT type aliases can
550550
/// // access their parents' generics.
551551
///

0 commit comments

Comments
 (0)