Skip to content

Commit dfe802b

Browse files
committed
Document ast::ExprKind::Type.
1 parent cfeb917 commit dfe802b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/ast.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,7 @@ pub enum ExprKind {
11371137
Lit(Lit),
11381138
/// A cast (e.g., `foo as f64`).
11391139
Cast(P<Expr>, P<Ty>),
1140+
/// A type ascription (e.g., `42: usize`).
11401141
Type(P<Expr>, P<Ty>),
11411142
/// An `if` block, with an optional `else` block.
11421143
///

0 commit comments

Comments
 (0)