1 error: function cannot return without recursing
2 --> $DIR/lint-unconditional-recursion.rs:4:1
5 | ^^^^^^^^ cannot return without recursing
7 | ----- recursive call site
9 = help: a `loop` may express intention better if this is on purpose
10 note: the lint level is defined here
11 --> $DIR/lint-unconditional-recursion.rs:1:9
13 LL | #![deny(unconditional_recursion)]
14 | ^^^^^^^^^^^^^^^^^^^^^^^
16 error: function cannot return without recursing
17 --> $DIR/lint-unconditional-recursion.rs:14:1
20 | ^^^^^^^^ cannot return without recursing
23 | ----- recursive call site
26 | ----- recursive call site
28 = help: a `loop` may express intention better if this is on purpose
30 error: function cannot return without recursing
31 --> $DIR/lint-unconditional-recursion.rs:26:1
33 LL | fn quz() -> bool {
34 | ^^^^^^^^^^^^^^^^ cannot return without recursing
37 | ----- recursive call site
40 | ----- recursive call site
42 = help: a `loop` may express intention better if this is on purpose
44 error: function cannot return without recursing
45 --> $DIR/lint-unconditional-recursion.rs:37:5
48 | ^^^^^^^^^^^^^ cannot return without recursing
50 | ---------- recursive call site
52 = help: a `loop` may express intention better if this is on purpose
54 error: function cannot return without recursing
55 --> $DIR/lint-unconditional-recursion.rs:43:5
58 | ^^^^^^^^^^^^^ cannot return without recursing
61 | ---------- recursive call site
63 = help: a `loop` may express intention better if this is on purpose
65 error: function cannot return without recursing
66 --> $DIR/lint-unconditional-recursion.rs:52:5
69 | ^^^^^^^^^^^^^ cannot return without recursing
71 | ------- recursive call site
73 = help: a `loop` may express intention better if this is on purpose
75 error: function cannot return without recursing
76 --> $DIR/lint-unconditional-recursion.rs:65:5
79 | ^^^^^^^^^^^^^ cannot return without recursing
81 | --------------- recursive call site
83 = help: a `loop` may express intention better if this is on purpose
85 error: function cannot return without recursing
86 --> $DIR/lint-unconditional-recursion.rs:71:5
89 | ^^^^^^^^^^^^^ cannot return without recursing
92 | --------------- recursive call site
94 = help: a `loop` may express intention better if this is on purpose
96 error: function cannot return without recursing
97 --> $DIR/lint-unconditional-recursion.rs:81:5
100 | ^^^^^^^^^^^^^ cannot return without recursing
102 | ---------- recursive call site
104 = help: a `loop` may express intention better if this is on purpose
106 error: function cannot return without recursing
107 --> $DIR/lint-unconditional-recursion.rs:86:5
109 LL | fn as_ref(&self) -> &Self {
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
111 LL | Baz::as_ref(self)
112 | ----------------- recursive call site
114 = help: a `loop` may express intention better if this is on purpose
116 error: function cannot return without recursing
117 --> $DIR/lint-unconditional-recursion.rs:93:5
119 LL | fn default() -> Baz {
120 | ^^^^^^^^^^^^^^^^^^^ cannot return without recursing
121 LL | let x = Default::default();
122 | ------------------ recursive call site
124 = help: a `loop` may express intention better if this is on purpose
126 error: function cannot return without recursing
127 --> $DIR/lint-unconditional-recursion.rs:102:5
129 LL | fn deref(&self) -> &() {
130 | ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
132 | ------ recursive call site
134 = help: a `loop` may express intention better if this is on purpose
136 error: function cannot return without recursing
137 --> $DIR/lint-unconditional-recursion.rs:109:5
139 LL | fn index(&self, x: usize) -> &Baz {
140 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
142 | ------- recursive call site
144 = help: a `loop` may express intention better if this is on purpose
146 error: function cannot return without recursing
147 --> $DIR/lint-unconditional-recursion.rs:118:5
149 LL | fn deref(&self) -> &Baz {
150 | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
152 | ------------- recursive call site
154 = help: a `loop` may express intention better if this is on purpose
156 error: function cannot return without recursing
157 --> $DIR/lint-unconditional-recursion.rs:162:1
159 LL | pub fn drop_and_replace(mut a: Option<String>) {
160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
162 LL | drop_and_replace(a);
163 | ------------------- recursive call site
165 = help: a `loop` may express intention better if this is on purpose
167 error: function cannot return without recursing
168 --> $DIR/lint-unconditional-recursion.rs:168:1
170 LL | pub fn call() -> String {
171 | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
172 LL | let s = String::new();
174 | ------ recursive call site
176 = help: a `loop` may express intention better if this is on purpose
178 error: function cannot return without recursing
179 --> $DIR/lint-unconditional-recursion.rs:175:1
181 LL | pub fn overflow_check(a: i32, b: i32) {
182 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
184 LL | overflow_check(a, b);
185 | -------------------- recursive call site
187 = help: a `loop` may express intention better if this is on purpose
189 error: function cannot return without recursing
190 --> $DIR/lint-unconditional-recursion.rs:186:5
192 LL | fn default() -> Self {
193 | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
195 LL | ..Default::default()
196 | ------------------ recursive call site
198 = help: a `loop` may express intention better if this is on purpose
200 error: aborting due to 18 previous errors