summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/infinite_loop.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-12 16:00:14 +0000
committerbors <bors@rust-lang.org>2022-12-12 16:00:14 +0000
commit69f9c33d71c871fc16ac445211281c6e7a340943 (patch)
tree348cdcec6049f68be8c2618d727b2facd1ccb857 /src/test/ui/consts/const-eval/infinite_loop.rs
parent0040709e39bfa159d099ee14628ad4ac72f91406 (diff)
parentc9aa73c3b141d04aeffe7ff359f0fe2d642ff2b1 (diff)
downloadrust-1.66.0.tar.gz
rust-1.66.0.zip
Auto merge of #105563 - pietroalbini:pa-stable-1.66.0, r=pietroalbini 1.66.0
[stable] Prepare 1.66.0 release

This PR prepares the artifacts for the 1.66.0 release. The following PRs have been backported:

* #104782
* #105023
* #104558
* #104610
* #103989
* #104650
* #105539
* #105477

r? `@ghost`
Diffstat (limited to 'src/test/ui/consts/const-eval/infinite_loop.rs')
-rw-r--r--src/test/ui/consts/const-eval/infinite_loop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/infinite_loop.rs b/src/test/ui/consts/const-eval/infinite_loop.rs
index 14a573ccf5a..4babc9a2850 100644
--- a/src/test/ui/consts/const-eval/infinite_loop.rs
+++ b/src/test/ui/consts/const-eval/infinite_loop.rs
@@ -4,8 +4,8 @@ fn main() {
     let _ = [(); {
         let mut n = 113383; // #20 in https://oeis.org/A006884
         while n != 0 {
-            n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
             //~^ ERROR evaluation of constant value failed
+            n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
         }
         n
     }];