1
Fork 0

Add more comments about kind checking on local move initializers

This commit is contained in:
Brian Anderson 2011-09-27 15:28:25 -07:00
parent 8217e4bd38
commit 888e22aacc

View file

@ -204,7 +204,9 @@ fn check_stmt(tcx: ty::ctxt, stmt: @ast::stmt) {
"local initializer"); "local initializer");
} }
option::some({op: ast::init_move., expr}) { option::some({op: ast::init_move., expr}) {
// FIXME: Same as above // FIXME: Should be as above but moving may be the
// only way available currently to assign a resource
// to a local.
} }
option::none. { /* fall through */ } option::none. { /* fall through */ }
} }