summary refs log tree commit diff
path: root/src/test/compile-fail/borrow-tuple-fields.rs
AgeCommit message (Collapse)AuthorLines
2015-09-17Changes to testsNick Cameron-1/+0
2015-03-03Add `: Box<_>` or `::Box<_>` type annotations to various places.Felix S. Klock II-1/+1
This is the kind of change that one is expected to need to make to accommodate overloaded-`box`. ---- Note that this is not *all* of the changes necessary to accommodate Issue 22181. It is merely the subset of those cases where there was already a let-binding in place that made it easy to add the necesasry type ascription. (For unnamed intermediate `Box` values, one must go down a different route; `Box::new` is the option that maximizes portability, but has potential inefficiency depending on whether the call is inlined.) ---- There is one place worth note, `run-pass/coerce-match.rs`, where I used an ugly form of `Box<_>` type ascription where I would have preferred to use `Box::new` to accommodate overloaded-`box`. I deliberately did not use `Box::new` here, because that is already done in coerce-match-calls.rs. ---- Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
2015-01-31Kill more `isize`sTobias Bucher-6/+6
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-6/+6
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2015-01-08fallout: part of changes to compile-fail tests. (follows same pattern as ↵Felix S. Klock II-0/+3
prior two commits.)
2014-12-03Remove feature gates for `if let`, `while let`, and tuple indexingNick Cameron-2/+0
Closes #19469
2014-09-10Implement tuple and tuple struct indexingP1start-0/+42
This allows code to access the fields of tuples and tuple structs: let x = (1i, 2i); assert_eq!(x.1, 2); struct Point(int, int); let origin = Point(0, 0); assert_eq!(origin.0, 0); assert_eq!(origin.1, 0);