Skip to content

Commit 883145f

Browse files
committed
fix TraitItemKind::expect_type docs
1 parent b2ef837 commit 883145f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ impl<'hir> TraitItem<'hir> {
22882288
(ty, trfn)
22892289
}
22902290

2291-
/// Expect an [`TraitItemKind::ExternCrate`] or panic.
2291+
/// Expect an [`TraitItemKind::Type`] or panic.
22922292
#[track_caller]
22932293
pub fn expect_type(&self) -> (GenericBounds<'hir>, Option<&'hir Ty<'hir>>) {
22942294
let TraitItemKind::Type(bounds, ty) = self.kind else { self.expect_failed("a type") };

0 commit comments

Comments
 (0)