]> git.lizzy.rs Git - rust.git/commitdiff
Add test for promotability in `let`
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 6 Nov 2019 15:09:16 +0000 (07:09 -0800)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 6 Nov 2019 15:09:16 +0000 (07:09 -0800)
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.


No differences found