rust/src/test/ui/lint/lint-impl-fn.stderr

39 lines
929 B
Plaintext
Raw Normal View History

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
|
2019-03-09 06:03:44 -06:00
LL | fn bar(&self) { while true {} }
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^ 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 { ... }`
--> $DIR/lint-impl-fn.rs:18:25
2018-08-08 07:28:26 -05:00
|
LL | fn foo(&self) { while true {} }
| ^^^^^^^^^^ help: use `loop`
2018-08-08 07:28:26 -05:00
|
note: lint level defined here
--> $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 { ... }`
--> $DIR/lint-impl-fn.rs:27:5
2018-08-08 07:28:26 -05:00
|
LL | while true {}
| ^^^^^^^^^^ help: use `loop`
2018-08-08 07:28:26 -05:00
|
note: lint level defined here
--> $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