We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TraitItemKind::expect_type
1 parent b2ef837 commit 883145fCopy full SHA for 883145f
compiler/rustc_hir/src/hir.rs
@@ -2288,7 +2288,7 @@ impl<'hir> TraitItem<'hir> {
2288
(ty, trfn)
2289
}
2290
2291
- /// Expect an [`TraitItemKind::ExternCrate`] or panic.
+ /// Expect an [`TraitItemKind::Type`] or panic.
2292
#[track_caller]
2293
pub fn expect_type(&self) -> (GenericBounds<'hir>, Option<&'hir Ty<'hir>>) {
2294
let TraitItemKind::Type(bounds, ty) = self.kind else { self.expect_failed("a type") };
0 commit comments