diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-22 10:45:49 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-22 11:01:31 -0800 |
| commit | fcf4bee7d3d69356a9eb702f9e0a9ddba238d33f (patch) | |
| tree | 55c85d4cef0c4295f5e73960a25e03f2e02080e4 /src/liballoc/alloc | |
| parent | 53712f8637dbe326df569a90814aae1cc5429710 (diff) | |
| download | rust-fcf4bee7d3d69356a9eb702f9e0a9ddba238d33f.tar.gz rust-fcf4bee7d3d69356a9eb702f9e0a9ddba238d33f.zip | |
Fix tests for RFC 2203 in a `const`
The previous test was incorrect. `const fn`s are *always* promotable when inside a `const`, so it should pass. The error was caused by a bug in `promote_consts`. I've added a failing test outside a `const` alongside the existing one, which is now run-pass.
Diffstat (limited to 'src/liballoc/alloc')
0 files changed, 0 insertions, 0 deletions
