fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0658]: `loop` is not allowed in a `const` 2 --> $DIR/loop.rs:10:15 3 | 4LL | const _: () = loop {}; 5 | ^^^^^^^ 6 | 7 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 8 = help: add `#![feature(const_loop)]` to the crate attributes to enable 9 10error[E0658]: `loop` is not allowed in a `static` 11 --> $DIR/loop.rs:12:19 12 | 13LL | static FOO: i32 = loop { break 4; }; 14 | ^^^^^^^^^^^^^^^^^ 15 | 16 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 17 = help: add `#![feature(const_loop)]` to the crate attributes to enable 18 19error[E0658]: `loop` is not allowed in a `const fn` 20 --> $DIR/loop.rs:15:5 21 | 22LL | loop {} 23 | ^^^^^^^ 24 | 25 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 26 = help: add `#![feature(const_loop)]` to the crate attributes to enable 27 28error[E0658]: `loop` is not allowed in a `const fn` 29 --> $DIR/loop.rs:28:9 30 | 31LL | loop {} 32 | ^^^^^^^ 33 | 34 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 35 = help: add `#![feature(const_loop)]` to the crate attributes to enable 36 37error[E0658]: `while` is not allowed in a `const` 38 --> $DIR/loop.rs:40:9 39 | 40LL | while false {} 41 | ^^^^^^^^^^^^^^ 42 | 43 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 44 = help: add `#![feature(const_loop)]` to the crate attributes to enable 45 46error[E0658]: `while` is not allowed in a `const` 47 --> $DIR/loop.rs:49:5 48 | 49LL | / while x < 4 { 50LL | | x += 1; 51LL | | } 52 | |_____^ 53 | 54 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 55 = help: add `#![feature(const_loop)]` to the crate attributes to enable 56 57error[E0658]: `while` is not allowed in a `const` 58 --> $DIR/loop.rs:53:5 59 | 60LL | / while x < 8 { 61LL | | x += 1; 62LL | | } 63 | |_____^ 64 | 65 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 66 = help: add `#![feature(const_loop)]` to the crate attributes to enable 67 68error[E0744]: `for` is not allowed in a `const` 69 --> $DIR/loop.rs:63:5 70 | 71LL | / for i in 0..4 { 72LL | | x += i; 73LL | | } 74 | |_____^ 75 76error[E0744]: `for` is not allowed in a `const` 77 --> $DIR/loop.rs:67:5 78 | 79LL | / for i in 0..4 { 80LL | | x += i; 81LL | | } 82 | |_____^ 83 84error[E0658]: `loop` is not allowed in a `const` 85 --> $DIR/loop.rs:77:5 86 | 87LL | / loop { 88LL | | x += 1; 89LL | | if x == 4 { 90LL | | break; 91LL | | } 92LL | | } 93 | |_____^ 94 | 95 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 96 = help: add `#![feature(const_loop)]` to the crate attributes to enable 97 98error[E0658]: `loop` is not allowed in a `const` 99 --> $DIR/loop.rs:84:5 100 | 101LL | / loop { 102LL | | x += 1; 103LL | | if x == 8 { 104LL | | break; 105LL | | } 106LL | | } 107 | |_____^ 108 | 109 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 110 = help: add `#![feature(const_loop)]` to the crate attributes to enable 111 112error[E0658]: `while` is not allowed in a `const` 113 --> $DIR/loop.rs:96:5 114 | 115LL | while let None = Some(x) { } 116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 | 118 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 119 = help: add `#![feature(const_loop)]` to the crate attributes to enable 120 121error[E0658]: `while` is not allowed in a `const` 122 --> $DIR/loop.rs:97:5 123 | 124LL | while let None = Some(x) { } 125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 126 | 127 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 128 = help: add `#![feature(const_loop)]` to the crate attributes to enable 129 130error[E0658]: `loop` is not allowed in a `const` 131 --> $DIR/loop.rs:19:22 132 | 133LL | const BAR: i32 = loop { break 4; }; 134 | ^^^^^^^^^^^^^^^^^ 135 | 136 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 137 = help: add `#![feature(const_loop)]` to the crate attributes to enable 138 139error[E0658]: `loop` is not allowed in a `const` 140 --> $DIR/loop.rs:23:22 141 | 142LL | const BAR: i32 = loop { break 4; }; 143 | ^^^^^^^^^^^^^^^^^ 144 | 145 = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information 146 = help: add `#![feature(const_loop)]` to the crate attributes to enable 147 148error: aborting due to 15 previous errors 149 150Some errors have detailed explanations: E0658, E0744. 151For more information about an error, try `rustc --explain E0658`.