summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-unconditional-drop-recursion.stderr
blob: 76f95481605f1a16c060c47a3feb1553f439c7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: function cannot return without recursing
  --> $DIR/lint-unconditional-drop-recursion.rs:11:5
   |
LL |     fn drop(&mut self) {
   |     ^^^^^^^^^^^^^^^^^^ cannot return without recursing
LL |         let _ = RecursiveDrop;
   |                              - recursive call site
   |
   = help: a `loop` may express intention better if this is on purpose
note: the lint level is defined here
  --> $DIR/lint-unconditional-drop-recursion.rs:5:9
   |
LL | #![deny(unconditional_recursion)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error