]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #66096 - ecstatic-morse:const-loop-test, r=Centril
authorPietro Albini <pietro@pietroalbini.org>
Tue, 5 Nov 2019 08:50:00 +0000 (09:50 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2019 08:50:00 +0000 (09:50 +0100)
commit1ffa93e5f8229c34286f50d1d79dd410324a7d9d
tree789b6d6c4f82556994df5f3655ca9db80e7500f0
parentdc40c9389a02fa0cff6ac15402c787e4b5ab260a
parentc8ae2819c5e8eeaa9a1f6435148f8d05fb5f8c56
Rollup merge of #66096 - ecstatic-morse:const-loop-test, r=Centril

Add a failing UI test for multiple loops of all kinds in a `const`

This simply demonstrates the current behavior and ensures we don't allow anything by accident.

The new const checker will be able to improve the diagnostics here. While working on it, I didn't see very many tests with non-`while` loops in a `const`, and there were no tests with multiple loops.