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. |
||
|---|---|---|
| .. | ||
| fn-call-in-const.rs | ||
| fn-call-in-non-const.rs | ||
| fn-call-in-non-const.stderr | ||
| migrate-fail.rs | ||
| migrate-fail.stderr | ||
| migrate-pass.rs | ||
| nll-fail.rs | ||
| nll-fail.stderr | ||
| nll-pass.rs | ||
| run-pass.rs | ||
| trait-error.rs | ||
| trait-error.stderr | ||