]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-impl-fn.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-impl-fn.stderr
1 error: denote infinite loops with `loop { ... }`
2   --> $DIR/lint-impl-fn.rs:20:21
3    |
4 LL |     fn bar(&self) { while true {} } //~ ERROR: infinite loops
5    |                     ^^^^^^^^^^ help: use `loop`
6    |
7 note: lint level defined here
8   --> $DIR/lint-impl-fn.rs:19:12
9    |
10 LL |     #[deny(while_true)]
11    |            ^^^^^^^^^^
12
13 error: denote infinite loops with `loop { ... }`
14   --> $DIR/lint-impl-fn.rs:28:25
15    |
16 LL |         fn foo(&self) { while true {} } //~ ERROR: infinite loops
17    |                         ^^^^^^^^^^ help: use `loop`
18    |
19 note: lint level defined here
20   --> $DIR/lint-impl-fn.rs:23:8
21    |
22 LL | #[deny(while_true)]
23    |        ^^^^^^^^^^
24
25 error: denote infinite loops with `loop { ... }`
26   --> $DIR/lint-impl-fn.rs:37:5
27    |
28 LL |     while true {} //~ ERROR: infinite loops
29    |     ^^^^^^^^^^ help: use `loop`
30    |
31 note: lint level defined here
32   --> $DIR/lint-impl-fn.rs:35:8
33    |
34 LL | #[deny(while_true)]
35    |        ^^^^^^^^^^
36
37 error: aborting due to 3 previous errors
38