2018-08-08 07:28:26 -05:00
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:10:21
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn bar(&self) { while true {} } //~ ERROR: infinite loops
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:9:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:18:25
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn foo(&self) { while true {} } //~ ERROR: infinite loops
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:13:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: denote infinite loops with `loop { ... }`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | while true {} //~ ERROR: infinite loops
|
|
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-impl-fn.rs:25:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[deny(while_true)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|