diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-06 07:09:16 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-06 07:09:16 -0800 |
| commit | ec5ba54ed2f0db8dae06f0f89b183bbfd0306238 (patch) | |
| tree | fbcb4ec6fd630e404cb2023d34fffcccaec77135 /src/libsyntax/parse/parser/diagnostics.rs | |
| parent | a9b1abe6ea96f77ea7fc1761b3cd39c309eb7fcd (diff) | |
| download | rust-ec5ba54ed2f0db8dae06f0f89b183bbfd0306238.tar.gz rust-ec5ba54ed2f0db8dae06f0f89b183bbfd0306238.zip | |
Add test for promotability in `let`
The old const-checker conservatively reset qualifs when `IsNotPromotable` was in the return place. Unfortunately, named variables have `IsNotPromotable`, so this could cause promotion to fail. This should work now.
Diffstat (limited to 'src/libsyntax/parse/parser/diagnostics.rs')
0 files changed, 0 insertions, 0 deletions
