about summary refs log tree commit diff
path: root/src/test/ui/nll/user-annotations/patterns.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-136/+0
2022-06-03Fully stabilize NLLJack Huey-2/+0
2018-10-26Add test for normalization during field-lookup on patterns with ascribed types.Felix S. Klock II-0/+17
As a drive-by, also added test analogous to existing static_to_a_to_static_through_tuple, but now apply to a struct instead of a tuple.
2018-10-26Add the actual chain of projections to `UserTypeProjection`.Felix S. Klock II-16/+16
Update the existing NLL `patterns.rs` test accordingly. includes changes addressing review feedback: * Added example to docs for `UserTypeProjections` illustrating how we build up multiple projections when descending into a pattern with type ascriptions. * Adapted niko's suggested docs for `UserTypeProjection`. * Factored out `projection_ty` from more general `projection_ty_core` (as a drive-by, made its callback an `FnMut`, as I discovered later that I need that). * Add note to docs that `PlaceTy.field_ty(..)` does not normalize its result. * Normalize as we project out `field_ty`.
2018-09-25Change the diagnostic number from 714 to 716.Felix S. Klock II-3/+3
2018-09-25add "temporary value dropped while borrowed" errorMikhail Modin-3/+3
Issue #54131
2018-09-10add FIXME related to `ref x` bindingsNiko Matsakis-1/+1
2018-09-10propagate user-ascribes types down onto resulting bindingsNiko Matsakis-5/+34
But only in very simple cases.
2018-09-10expand the patterns test with a bunch more scenariosNiko Matsakis-1/+79
2018-09-10insert `AscribeUserType` for ascriptionsNiko Matsakis-0/+14