about summary refs log tree commit diff
path: root/src/test/compile-fail/mut-pattern-mismatched.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-30/+0
2016-08-19wording fixes in error messagesJonathan Turner-2/+2
2016-07-28Move to {integer} and {float}Jonathan Turner-2/+2
2016-07-28Rename _ to {numerics} for unknown numeric typesJonathan Turner-2/+2
2016-05-02update test cases to reflect new messagesNiko Matsakis-4/+4
2015-03-05Fix compile-fail error messages after integer suffix removal.Eduard Burtescu-2/+2
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-2/+2
2015-01-31Kill more `isize`sTobias Bucher-4/+4
2015-01-12Fix testsuite errorsmdinger-2/+8
2015-01-07fix the `&mut _` patternsJorge Aparicio-1/+1
2015-01-07register new snapshotsJorge Aparicio-4/+2
2015-01-06More test fixesAlex Crichton-1/+1
2015-01-06test fallout from isize/usizeCorey Richardson-4/+4
2015-01-05More test fixes!Alex Crichton-2/+2
2015-01-05Change `&` pat to only work with &T, and `&mut` with &mut T.Huon Wilson-0/+26
This implements RFC 179 by making the pattern `&<pat>` require matching against a variable of type `&T`, and introducing the pattern `&mut <pat>` which only works with variables of type `&mut T`. The pattern `&mut x` currently parses as `&(mut x)` i.e. a pattern match through a `&T` or a `&mut T` that binds the variable `x` to have type `T` and to be mutable. This should be rewritten as follows, for example, for &mut x in slice.iter() { becomes for &x in slice.iter() { let mut x = x; Due to this, this is a [breaking-change] Closes #20496.