]> git.lizzy.rs Git - rust.git/commit
Test that borrows of projections are promoted everywhere
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 23 Oct 2019 16:55:20 +0000 (09:55 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 3 Nov 2019 20:24:35 +0000 (12:24 -0800)
commitd6431f69ad2d05e9aa2d5a316c1b4fcaf85f24aa
tree81c460bfb94de944025dfbeeacd21b1126e266c1
parentfab0caf1723b243e6446ddca669b30b241daf313
Test that borrows of projections are promoted everywhere

Previously, this worked in `fn`s but not `const`s or `static`s.
src/test/ui/consts/promote_borrowed_field.rs [new file with mode: 0644]