fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
950 B38 linesraw
1error: denote infinite loops with `loop { ... }`
2  --> $DIR/lint-impl-fn.rs:10:21
3   |
4LL |     fn bar(&self) { while true {} }
5   |                     ^^^^^^^^^^ help: use `loop`
6   |
7note: the lint level is defined here
8  --> $DIR/lint-impl-fn.rs:9:12
9   |
10LL |     #[deny(while_true)]
11   |            ^^^^^^^^^^
12
13error: denote infinite loops with `loop { ... }`
14  --> $DIR/lint-impl-fn.rs:18:25
15   |
16LL |         fn foo(&self) { while true {} }
17   |                         ^^^^^^^^^^ help: use `loop`
18   |
19note: the lint level is defined here
20  --> $DIR/lint-impl-fn.rs:13:8
21   |
22LL | #[deny(while_true)]
23   |        ^^^^^^^^^^
24
25error: denote infinite loops with `loop { ... }`
26  --> $DIR/lint-impl-fn.rs:27:5
27   |
28LL |     while true {}
29   |     ^^^^^^^^^^ help: use `loop`
30   |
31note: the lint level is defined here
32  --> $DIR/lint-impl-fn.rs:25:8
33   |
34LL | #[deny(while_true)]
35   |        ^^^^^^^^^^
36
37error: aborting due to 3 previous errors
38