Skip to content

Commit c5b6d94

Browse files
author
Jorge Aparicio
committed
Tell typeck that user unops are by value
1 parent 7efaf3f commit c5b6d94

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3363,7 +3363,7 @@ fn check_expr_with_unifier<'a, 'tcx, F>(fcx: &FnCtxt<'a, 'tcx>,
33633363
format!("cannot apply unary operator `{}` to type `{}`",
33643364
op_str, actual)
33653365
}, rhs_t, None);
3366-
}, AutorefArgs::Yes)
3366+
}, AutorefArgs::No)
33673367
}
33683368

33693369
// Check field access expressions

0 commit comments

Comments
 (0)