fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0658]: `while` is not allowed in a `const` 2 --> $DIR/issue-52475.rs:6:9 3 | 4LL | / while n < 5 { 5LL | | 6LL | | n = (n + 1) % 5; 7LL | | x = &0; // Materialize a new AllocId 8LL | | } 9 | |_________^ 10 | 11 = note: for more information, see https://github.com/rust-lang/rust/issues/52000 12 = help: add `#![feature(const_loop)]` to the crate attributes to enable 13 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 14 15warning: Constant evaluating a complex constant, this might take some time 16 --> $DIR/issue-52475.rs:2:18 17 | 18LL | let _ = [(); { 19 | __________________^ 20LL | | 21LL | | let mut x = &0; 22LL | | let mut n = 0; 23... | 24LL | | 0 25LL | | }]; 26 | |_____^ 27 28error[E0080]: evaluation of constant value failed 29 --> $DIR/issue-52475.rs:8:17 30 | 31LL | n = (n + 1) % 5; 32 | ^^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate 33 34error: aborting due to 2 previous errors 35 36Some errors have detailed explanations: E0080, E0658. 37For more information about an error, try `rustc --explain E0080`.