Update tests/ui/lang/issue-836.rs

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
Sylvester Hesp 2023-03-21 13:20:00 +01:00 committed by Sylvester Hesp
parent 86f0cc994f
commit 9f64b7c33e

View File

@ -34,7 +34,7 @@ pub fn main(
let newtype_slice = Newtype(slice); let newtype_slice = Newtype(slice);
*out = newtype_slice.get()[0]; *out = newtype_slice.get()[0];
*out += newtype_slice.slice_get()[1]; *out += newtype_slice.slice_get()[1];
*out += *newtype_slice.deref_index(2); *out += newtype_slice.deref_index(2);
let newtype_custom_pair = Newtype(CustomPair(*out, *out + 1)); let newtype_custom_pair = Newtype(CustomPair(*out, *out + 1));
*out += newtype_custom_pair.get().0; *out += newtype_custom_pair.get().0;