summary refs log tree commit diff
path: root/src/test/ui/generator/partial-initialization-across-yield.rs
AgeCommit message (Collapse)AuthorLines
2019-09-06Fixed grammar/style in error messages and reblessed tests.Alexander Regueiro-3/+3
2019-08-05Make use of possibly uninitialized data a hard errorTyler Mandry-0/+46
This is one of the behaviors we no longer allow in NLL. Since it can lead to undefined behavior, I think it's definitely worth making it a hard error without waiting to turn off migration mode (#58781). Closes #60450. My ulterior motive here is making it impossible to leave variables partially initialized across a yield (see discussion at #63035), so tests are included for that.