code cleanup
This commit is contained in:
parent
a21a055ca6
commit
c6d23bdd32
1 changed files with 1 additions and 2 deletions
|
@ -216,8 +216,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
|
|||
// inference is more completely known.
|
||||
match cast_ty.kind() {
|
||||
ty::Dynamic(_, _, ty::Dyn) | ty::Slice(..) => {
|
||||
let reported = check.report_cast_to_unsized_type(fcx);
|
||||
return Err(reported);
|
||||
Err(check.report_cast_to_unsized_type(fcx))
|
||||
}
|
||||
_ => Ok(check),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue