We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 770f6cd + 0b6b72e commit b59658cCopy full SHA for b59658c
compiler/rustc_hir/src/hir.rs
@@ -1960,7 +1960,7 @@ pub enum ExprKind<'hir> {
1960
Lit(&'hir Lit),
1961
/// A cast (e.g., `foo as f64`).
1962
Cast(&'hir Expr<'hir>, &'hir Ty<'hir>),
1963
- /// A type reference (e.g., `Foo`).
+ /// A type ascription (e.g., `x: Foo`). See RFC 3307.
1964
Type(&'hir Expr<'hir>, &'hir Ty<'hir>),
1965
/// Wraps the expression in a terminating scope.
1966
/// This makes it semantically equivalent to `{ let _t = expr; _t }`.
0 commit comments