rust/tests/ui/lint/lint-impl-fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
950 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: denote infinite loops with `loop { ... }`
2018-12-25 15:56:47 +00:00
--> $DIR/lint-impl-fn.rs:10:21
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn bar(&self) { while true {} }
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^ help: use `loop`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-25 15:56:47 +00:00
--> $DIR/lint-impl-fn.rs:9:12
2018-08-08 12:28:26 +00:00
|
LL | #[deny(while_true)]
| ^^^^^^^^^^
error: denote infinite loops with `loop { ... }`
--> $DIR/lint-impl-fn.rs:18:25
2018-08-08 12:28:26 +00:00
|
LL | fn foo(&self) { while true {} }
| ^^^^^^^^^^ help: use `loop`
2018-08-08 12:28:26 +00:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/lint-impl-fn.rs:13:8
2018-08-08 12:28:26 +00:00
|
LL | #[deny(while_true)]
| ^^^^^^^^^^
error: denote infinite loops with `loop { ... }`
--> $DIR/lint-impl-fn.rs:27:5
2018-08-08 12:28:26 +00:00
|
LL | while true {}
| ^^^^^^^^^^ help: use `loop`
2018-08-08 12:28:26 +00:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/lint-impl-fn.rs:25:8
2018-08-08 12:28:26 +00:00
|
LL | #[deny(while_true)]
| ^^^^^^^^^^
error: aborting due to 3 previous errors