]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/uninhabited-const-issue-61744.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / consts / uninhabited-const-issue-61744.stderr
1 error[E0080]: evaluation of `<i32 as Const>::CONSTANT` failed
2   --> $DIR/uninhabited-const-issue-61744.rs:4:5
3    |
4 LL |     hint_unreachable()
5    |     ^^^^^^^^^^^^^^^^^^ reached the configured maximum number of stack frames
6    |
7 note: inside `fake_type::<!>`
8   --> $DIR/uninhabited-const-issue-61744.rs:4:5
9    |
10 LL |     hint_unreachable()
11    |     ^^^^^^^^^^^^^^^^^^
12 note: inside `hint_unreachable`
13   --> $DIR/uninhabited-const-issue-61744.rs:8:5
14    |
15 LL |     fake_type()
16    |     ^^^^^^^^^^^
17 note: inside `fake_type::<!>`
18   --> $DIR/uninhabited-const-issue-61744.rs:4:5
19    |
20 LL |     hint_unreachable()
21    |     ^^^^^^^^^^^^^^^^^^
22 note: inside `hint_unreachable`
23   --> $DIR/uninhabited-const-issue-61744.rs:8:5
24    |
25 LL |     fake_type()
26    |     ^^^^^^^^^^^
27 note: inside `fake_type::<!>`
28   --> $DIR/uninhabited-const-issue-61744.rs:4:5
29    |
30 LL |     hint_unreachable()
31    |     ^^^^^^^^^^^^^^^^^^
32 note: inside `hint_unreachable`
33   --> $DIR/uninhabited-const-issue-61744.rs:8:5
34    |
35 LL |     fake_type()
36    |     ^^^^^^^^^^^
37 note: inside `fake_type::<!>`
38   --> $DIR/uninhabited-const-issue-61744.rs:4:5
39    |
40 LL |     hint_unreachable()
41    |     ^^^^^^^^^^^^^^^^^^
42 note: inside `hint_unreachable`
43   --> $DIR/uninhabited-const-issue-61744.rs:8:5
44    |
45 LL |     fake_type()
46    |     ^^^^^^^^^^^
47 note: inside `fake_type::<!>`
48   --> $DIR/uninhabited-const-issue-61744.rs:4:5
49    |
50 LL |     hint_unreachable()
51    |     ^^^^^^^^^^^^^^^^^^
52 note: inside `hint_unreachable`
53   --> $DIR/uninhabited-const-issue-61744.rs:8:5
54    |
55 LL |     fake_type()
56    |     ^^^^^^^^^^^
57 note: inside `fake_type::<!>`
58   --> $DIR/uninhabited-const-issue-61744.rs:4:5
59    |
60 LL |     hint_unreachable()
61    |     ^^^^^^^^^^^^^^^^^^
62 note: inside `hint_unreachable`
63   --> $DIR/uninhabited-const-issue-61744.rs:8:5
64    |
65 LL |     fake_type()
66    |     ^^^^^^^^^^^
67 note: inside `fake_type::<!>`
68   --> $DIR/uninhabited-const-issue-61744.rs:4:5
69    |
70 LL |     hint_unreachable()
71    |     ^^^^^^^^^^^^^^^^^^
72 note: inside `hint_unreachable`
73   --> $DIR/uninhabited-const-issue-61744.rs:8:5
74    |
75 LL |     fake_type()
76    |     ^^^^^^^^^^^
77 note: inside `fake_type::<!>`
78   --> $DIR/uninhabited-const-issue-61744.rs:4:5
79    |
80 LL |     hint_unreachable()
81    |     ^^^^^^^^^^^^^^^^^^
82 note: inside `hint_unreachable`
83   --> $DIR/uninhabited-const-issue-61744.rs:8:5
84    |
85 LL |     fake_type()
86    |     ^^^^^^^^^^^
87 note: inside `fake_type::<!>`
88   --> $DIR/uninhabited-const-issue-61744.rs:4:5
89    |
90 LL |     hint_unreachable()
91    |     ^^^^^^^^^^^^^^^^^^
92 note: inside `hint_unreachable`
93   --> $DIR/uninhabited-const-issue-61744.rs:8:5
94    |
95 LL |     fake_type()
96    |     ^^^^^^^^^^^
97 note: inside `fake_type::<!>`
98   --> $DIR/uninhabited-const-issue-61744.rs:4:5
99    |
100 LL |     hint_unreachable()
101    |     ^^^^^^^^^^^^^^^^^^
102 note: inside `hint_unreachable`
103   --> $DIR/uninhabited-const-issue-61744.rs:8:5
104    |
105 LL |     fake_type()
106    |     ^^^^^^^^^^^
107 note: inside `fake_type::<!>`
108   --> $DIR/uninhabited-const-issue-61744.rs:4:5
109    |
110 LL |     hint_unreachable()
111    |     ^^^^^^^^^^^^^^^^^^
112 note: inside `hint_unreachable`
113   --> $DIR/uninhabited-const-issue-61744.rs:8:5
114    |
115 LL |     fake_type()
116    |     ^^^^^^^^^^^
117 note: inside `fake_type::<!>`
118   --> $DIR/uninhabited-const-issue-61744.rs:4:5
119    |
120 LL |     hint_unreachable()
121    |     ^^^^^^^^^^^^^^^^^^
122 note: inside `hint_unreachable`
123   --> $DIR/uninhabited-const-issue-61744.rs:8:5
124    |
125 LL |     fake_type()
126    |     ^^^^^^^^^^^
127 note: inside `fake_type::<!>`
128   --> $DIR/uninhabited-const-issue-61744.rs:4:5
129    |
130 LL |     hint_unreachable()
131    |     ^^^^^^^^^^^^^^^^^^
132 note: inside `hint_unreachable`
133   --> $DIR/uninhabited-const-issue-61744.rs:8:5
134    |
135 LL |     fake_type()
136    |     ^^^^^^^^^^^
137 note: inside `fake_type::<!>`
138   --> $DIR/uninhabited-const-issue-61744.rs:4:5
139    |
140 LL |     hint_unreachable()
141    |     ^^^^^^^^^^^^^^^^^^
142 note: inside `hint_unreachable`
143   --> $DIR/uninhabited-const-issue-61744.rs:8:5
144    |
145 LL |     fake_type()
146    |     ^^^^^^^^^^^
147 note: inside `fake_type::<!>`
148   --> $DIR/uninhabited-const-issue-61744.rs:4:5
149    |
150 LL |     hint_unreachable()
151    |     ^^^^^^^^^^^^^^^^^^
152 note: inside `hint_unreachable`
153   --> $DIR/uninhabited-const-issue-61744.rs:8:5
154    |
155 LL |     fake_type()
156    |     ^^^^^^^^^^^
157 note: inside `fake_type::<!>`
158   --> $DIR/uninhabited-const-issue-61744.rs:4:5
159    |
160 LL |     hint_unreachable()
161    |     ^^^^^^^^^^^^^^^^^^
162 note: inside `hint_unreachable`
163   --> $DIR/uninhabited-const-issue-61744.rs:8:5
164    |
165 LL |     fake_type()
166    |     ^^^^^^^^^^^
167 note: inside `fake_type::<!>`
168   --> $DIR/uninhabited-const-issue-61744.rs:4:5
169    |
170 LL |     hint_unreachable()
171    |     ^^^^^^^^^^^^^^^^^^
172 note: inside `hint_unreachable`
173   --> $DIR/uninhabited-const-issue-61744.rs:8:5
174    |
175 LL |     fake_type()
176    |     ^^^^^^^^^^^
177 note: inside `fake_type::<!>`
178   --> $DIR/uninhabited-const-issue-61744.rs:4:5
179    |
180 LL |     hint_unreachable()
181    |     ^^^^^^^^^^^^^^^^^^
182 note: inside `hint_unreachable`
183   --> $DIR/uninhabited-const-issue-61744.rs:8:5
184    |
185 LL |     fake_type()
186    |     ^^^^^^^^^^^
187 note: inside `fake_type::<!>`
188   --> $DIR/uninhabited-const-issue-61744.rs:4:5
189    |
190 LL |     hint_unreachable()
191    |     ^^^^^^^^^^^^^^^^^^
192 note: inside `hint_unreachable`
193   --> $DIR/uninhabited-const-issue-61744.rs:8:5
194    |
195 LL |     fake_type()
196    |     ^^^^^^^^^^^
197 note: inside `fake_type::<!>`
198   --> $DIR/uninhabited-const-issue-61744.rs:4:5
199    |
200 LL |     hint_unreachable()
201    |     ^^^^^^^^^^^^^^^^^^
202 note: inside `hint_unreachable`
203   --> $DIR/uninhabited-const-issue-61744.rs:8:5
204    |
205 LL |     fake_type()
206    |     ^^^^^^^^^^^
207 note: inside `fake_type::<!>`
208   --> $DIR/uninhabited-const-issue-61744.rs:4:5
209    |
210 LL |     hint_unreachable()
211    |     ^^^^^^^^^^^^^^^^^^
212 note: inside `hint_unreachable`
213   --> $DIR/uninhabited-const-issue-61744.rs:8:5
214    |
215 LL |     fake_type()
216    |     ^^^^^^^^^^^
217 note: inside `fake_type::<!>`
218   --> $DIR/uninhabited-const-issue-61744.rs:4:5
219    |
220 LL |     hint_unreachable()
221    |     ^^^^^^^^^^^^^^^^^^
222 note: inside `hint_unreachable`
223   --> $DIR/uninhabited-const-issue-61744.rs:8:5
224    |
225 LL |     fake_type()
226    |     ^^^^^^^^^^^
227 note: inside `fake_type::<!>`
228   --> $DIR/uninhabited-const-issue-61744.rs:4:5
229    |
230 LL |     hint_unreachable()
231    |     ^^^^^^^^^^^^^^^^^^
232 note: inside `hint_unreachable`
233   --> $DIR/uninhabited-const-issue-61744.rs:8:5
234    |
235 LL |     fake_type()
236    |     ^^^^^^^^^^^
237 note: inside `fake_type::<!>`
238   --> $DIR/uninhabited-const-issue-61744.rs:4:5
239    |
240 LL |     hint_unreachable()
241    |     ^^^^^^^^^^^^^^^^^^
242 note: inside `hint_unreachable`
243   --> $DIR/uninhabited-const-issue-61744.rs:8:5
244    |
245 LL |     fake_type()
246    |     ^^^^^^^^^^^
247 note: inside `fake_type::<!>`
248   --> $DIR/uninhabited-const-issue-61744.rs:4:5
249    |
250 LL |     hint_unreachable()
251    |     ^^^^^^^^^^^^^^^^^^
252 note: inside `hint_unreachable`
253   --> $DIR/uninhabited-const-issue-61744.rs:8:5
254    |
255 LL |     fake_type()
256    |     ^^^^^^^^^^^
257 note: inside `fake_type::<!>`
258   --> $DIR/uninhabited-const-issue-61744.rs:4:5
259    |
260 LL |     hint_unreachable()
261    |     ^^^^^^^^^^^^^^^^^^
262 note: inside `hint_unreachable`
263   --> $DIR/uninhabited-const-issue-61744.rs:8:5
264    |
265 LL |     fake_type()
266    |     ^^^^^^^^^^^
267 note: inside `fake_type::<!>`
268   --> $DIR/uninhabited-const-issue-61744.rs:4:5
269    |
270 LL |     hint_unreachable()
271    |     ^^^^^^^^^^^^^^^^^^
272 note: inside `hint_unreachable`
273   --> $DIR/uninhabited-const-issue-61744.rs:8:5
274    |
275 LL |     fake_type()
276    |     ^^^^^^^^^^^
277 note: inside `fake_type::<!>`
278   --> $DIR/uninhabited-const-issue-61744.rs:4:5
279    |
280 LL |     hint_unreachable()
281    |     ^^^^^^^^^^^^^^^^^^
282 note: inside `hint_unreachable`
283   --> $DIR/uninhabited-const-issue-61744.rs:8:5
284    |
285 LL |     fake_type()
286    |     ^^^^^^^^^^^
287 note: inside `fake_type::<!>`
288   --> $DIR/uninhabited-const-issue-61744.rs:4:5
289    |
290 LL |     hint_unreachable()
291    |     ^^^^^^^^^^^^^^^^^^
292 note: inside `hint_unreachable`
293   --> $DIR/uninhabited-const-issue-61744.rs:8:5
294    |
295 LL |     fake_type()
296    |     ^^^^^^^^^^^
297 note: inside `fake_type::<!>`
298   --> $DIR/uninhabited-const-issue-61744.rs:4:5
299    |
300 LL |     hint_unreachable()
301    |     ^^^^^^^^^^^^^^^^^^
302 note: inside `hint_unreachable`
303   --> $DIR/uninhabited-const-issue-61744.rs:8:5
304    |
305 LL |     fake_type()
306    |     ^^^^^^^^^^^
307 note: inside `fake_type::<!>`
308   --> $DIR/uninhabited-const-issue-61744.rs:4:5
309    |
310 LL |     hint_unreachable()
311    |     ^^^^^^^^^^^^^^^^^^
312 note: inside `hint_unreachable`
313   --> $DIR/uninhabited-const-issue-61744.rs:8:5
314    |
315 LL |     fake_type()
316    |     ^^^^^^^^^^^
317 note: inside `fake_type::<!>`
318   --> $DIR/uninhabited-const-issue-61744.rs:4:5
319    |
320 LL |     hint_unreachable()
321    |     ^^^^^^^^^^^^^^^^^^
322 note: inside `hint_unreachable`
323   --> $DIR/uninhabited-const-issue-61744.rs:8:5
324    |
325 LL |     fake_type()
326    |     ^^^^^^^^^^^
327 note: inside `fake_type::<!>`
328   --> $DIR/uninhabited-const-issue-61744.rs:4:5
329    |
330 LL |     hint_unreachable()
331    |     ^^^^^^^^^^^^^^^^^^
332 note: inside `hint_unreachable`
333   --> $DIR/uninhabited-const-issue-61744.rs:8:5
334    |
335 LL |     fake_type()
336    |     ^^^^^^^^^^^
337 note: inside `fake_type::<!>`
338   --> $DIR/uninhabited-const-issue-61744.rs:4:5
339    |
340 LL |     hint_unreachable()
341    |     ^^^^^^^^^^^^^^^^^^
342 note: inside `hint_unreachable`
343   --> $DIR/uninhabited-const-issue-61744.rs:8:5
344    |
345 LL |     fake_type()
346    |     ^^^^^^^^^^^
347 note: inside `fake_type::<!>`
348   --> $DIR/uninhabited-const-issue-61744.rs:4:5
349    |
350 LL |     hint_unreachable()
351    |     ^^^^^^^^^^^^^^^^^^
352 note: inside `hint_unreachable`
353   --> $DIR/uninhabited-const-issue-61744.rs:8:5
354    |
355 LL |     fake_type()
356    |     ^^^^^^^^^^^
357 note: inside `fake_type::<!>`
358   --> $DIR/uninhabited-const-issue-61744.rs:4:5
359    |
360 LL |     hint_unreachable()
361    |     ^^^^^^^^^^^^^^^^^^
362 note: inside `hint_unreachable`
363   --> $DIR/uninhabited-const-issue-61744.rs:8:5
364    |
365 LL |     fake_type()
366    |     ^^^^^^^^^^^
367 note: inside `fake_type::<!>`
368   --> $DIR/uninhabited-const-issue-61744.rs:4:5
369    |
370 LL |     hint_unreachable()
371    |     ^^^^^^^^^^^^^^^^^^
372 note: inside `hint_unreachable`
373   --> $DIR/uninhabited-const-issue-61744.rs:8:5
374    |
375 LL |     fake_type()
376    |     ^^^^^^^^^^^
377 note: inside `fake_type::<!>`
378   --> $DIR/uninhabited-const-issue-61744.rs:4:5
379    |
380 LL |     hint_unreachable()
381    |     ^^^^^^^^^^^^^^^^^^
382 note: inside `hint_unreachable`
383   --> $DIR/uninhabited-const-issue-61744.rs:8:5
384    |
385 LL |     fake_type()
386    |     ^^^^^^^^^^^
387 note: inside `fake_type::<!>`
388   --> $DIR/uninhabited-const-issue-61744.rs:4:5
389    |
390 LL |     hint_unreachable()
391    |     ^^^^^^^^^^^^^^^^^^
392 note: inside `hint_unreachable`
393   --> $DIR/uninhabited-const-issue-61744.rs:8:5
394    |
395 LL |     fake_type()
396    |     ^^^^^^^^^^^
397 note: inside `fake_type::<!>`
398   --> $DIR/uninhabited-const-issue-61744.rs:4:5
399    |
400 LL |     hint_unreachable()
401    |     ^^^^^^^^^^^^^^^^^^
402 note: inside `hint_unreachable`
403   --> $DIR/uninhabited-const-issue-61744.rs:8:5
404    |
405 LL |     fake_type()
406    |     ^^^^^^^^^^^
407 note: inside `fake_type::<!>`
408   --> $DIR/uninhabited-const-issue-61744.rs:4:5
409    |
410 LL |     hint_unreachable()
411    |     ^^^^^^^^^^^^^^^^^^
412 note: inside `hint_unreachable`
413   --> $DIR/uninhabited-const-issue-61744.rs:8:5
414    |
415 LL |     fake_type()
416    |     ^^^^^^^^^^^
417 note: inside `fake_type::<!>`
418   --> $DIR/uninhabited-const-issue-61744.rs:4:5
419    |
420 LL |     hint_unreachable()
421    |     ^^^^^^^^^^^^^^^^^^
422 note: inside `hint_unreachable`
423   --> $DIR/uninhabited-const-issue-61744.rs:8:5
424    |
425 LL |     fake_type()
426    |     ^^^^^^^^^^^
427 note: inside `fake_type::<!>`
428   --> $DIR/uninhabited-const-issue-61744.rs:4:5
429    |
430 LL |     hint_unreachable()
431    |     ^^^^^^^^^^^^^^^^^^
432 note: inside `hint_unreachable`
433   --> $DIR/uninhabited-const-issue-61744.rs:8:5
434    |
435 LL |     fake_type()
436    |     ^^^^^^^^^^^
437 note: inside `fake_type::<!>`
438   --> $DIR/uninhabited-const-issue-61744.rs:4:5
439    |
440 LL |     hint_unreachable()
441    |     ^^^^^^^^^^^^^^^^^^
442 note: inside `hint_unreachable`
443   --> $DIR/uninhabited-const-issue-61744.rs:8:5
444    |
445 LL |     fake_type()
446    |     ^^^^^^^^^^^
447 note: inside `fake_type::<!>`
448   --> $DIR/uninhabited-const-issue-61744.rs:4:5
449    |
450 LL |     hint_unreachable()
451    |     ^^^^^^^^^^^^^^^^^^
452 note: inside `hint_unreachable`
453   --> $DIR/uninhabited-const-issue-61744.rs:8:5
454    |
455 LL |     fake_type()
456    |     ^^^^^^^^^^^
457 note: inside `fake_type::<!>`
458   --> $DIR/uninhabited-const-issue-61744.rs:4:5
459    |
460 LL |     hint_unreachable()
461    |     ^^^^^^^^^^^^^^^^^^
462 note: inside `hint_unreachable`
463   --> $DIR/uninhabited-const-issue-61744.rs:8:5
464    |
465 LL |     fake_type()
466    |     ^^^^^^^^^^^
467 note: inside `fake_type::<!>`
468   --> $DIR/uninhabited-const-issue-61744.rs:4:5
469    |
470 LL |     hint_unreachable()
471    |     ^^^^^^^^^^^^^^^^^^
472 note: inside `hint_unreachable`
473   --> $DIR/uninhabited-const-issue-61744.rs:8:5
474    |
475 LL |     fake_type()
476    |     ^^^^^^^^^^^
477 note: inside `fake_type::<!>`
478   --> $DIR/uninhabited-const-issue-61744.rs:4:5
479    |
480 LL |     hint_unreachable()
481    |     ^^^^^^^^^^^^^^^^^^
482 note: inside `hint_unreachable`
483   --> $DIR/uninhabited-const-issue-61744.rs:8:5
484    |
485 LL |     fake_type()
486    |     ^^^^^^^^^^^
487 note: inside `fake_type::<!>`
488   --> $DIR/uninhabited-const-issue-61744.rs:4:5
489    |
490 LL |     hint_unreachable()
491    |     ^^^^^^^^^^^^^^^^^^
492 note: inside `hint_unreachable`
493   --> $DIR/uninhabited-const-issue-61744.rs:8:5
494    |
495 LL |     fake_type()
496    |     ^^^^^^^^^^^
497 note: inside `fake_type::<!>`
498   --> $DIR/uninhabited-const-issue-61744.rs:4:5
499    |
500 LL |     hint_unreachable()
501    |     ^^^^^^^^^^^^^^^^^^
502 note: inside `hint_unreachable`
503   --> $DIR/uninhabited-const-issue-61744.rs:8:5
504    |
505 LL |     fake_type()
506    |     ^^^^^^^^^^^
507 note: inside `fake_type::<!>`
508   --> $DIR/uninhabited-const-issue-61744.rs:4:5
509    |
510 LL |     hint_unreachable()
511    |     ^^^^^^^^^^^^^^^^^^
512 note: inside `hint_unreachable`
513   --> $DIR/uninhabited-const-issue-61744.rs:8:5
514    |
515 LL |     fake_type()
516    |     ^^^^^^^^^^^
517 note: inside `fake_type::<!>`
518   --> $DIR/uninhabited-const-issue-61744.rs:4:5
519    |
520 LL |     hint_unreachable()
521    |     ^^^^^^^^^^^^^^^^^^
522 note: inside `hint_unreachable`
523   --> $DIR/uninhabited-const-issue-61744.rs:8:5
524    |
525 LL |     fake_type()
526    |     ^^^^^^^^^^^
527 note: inside `fake_type::<!>`
528   --> $DIR/uninhabited-const-issue-61744.rs:4:5
529    |
530 LL |     hint_unreachable()
531    |     ^^^^^^^^^^^^^^^^^^
532 note: inside `hint_unreachable`
533   --> $DIR/uninhabited-const-issue-61744.rs:8:5
534    |
535 LL |     fake_type()
536    |     ^^^^^^^^^^^
537 note: inside `fake_type::<!>`
538   --> $DIR/uninhabited-const-issue-61744.rs:4:5
539    |
540 LL |     hint_unreachable()
541    |     ^^^^^^^^^^^^^^^^^^
542 note: inside `hint_unreachable`
543   --> $DIR/uninhabited-const-issue-61744.rs:8:5
544    |
545 LL |     fake_type()
546    |     ^^^^^^^^^^^
547 note: inside `fake_type::<!>`
548   --> $DIR/uninhabited-const-issue-61744.rs:4:5
549    |
550 LL |     hint_unreachable()
551    |     ^^^^^^^^^^^^^^^^^^
552 note: inside `hint_unreachable`
553   --> $DIR/uninhabited-const-issue-61744.rs:8:5
554    |
555 LL |     fake_type()
556    |     ^^^^^^^^^^^
557 note: inside `fake_type::<!>`
558   --> $DIR/uninhabited-const-issue-61744.rs:4:5
559    |
560 LL |     hint_unreachable()
561    |     ^^^^^^^^^^^^^^^^^^
562 note: inside `hint_unreachable`
563   --> $DIR/uninhabited-const-issue-61744.rs:8:5
564    |
565 LL |     fake_type()
566    |     ^^^^^^^^^^^
567 note: inside `fake_type::<!>`
568   --> $DIR/uninhabited-const-issue-61744.rs:4:5
569    |
570 LL |     hint_unreachable()
571    |     ^^^^^^^^^^^^^^^^^^
572 note: inside `hint_unreachable`
573   --> $DIR/uninhabited-const-issue-61744.rs:8:5
574    |
575 LL |     fake_type()
576    |     ^^^^^^^^^^^
577 note: inside `fake_type::<!>`
578   --> $DIR/uninhabited-const-issue-61744.rs:4:5
579    |
580 LL |     hint_unreachable()
581    |     ^^^^^^^^^^^^^^^^^^
582 note: inside `hint_unreachable`
583   --> $DIR/uninhabited-const-issue-61744.rs:8:5
584    |
585 LL |     fake_type()
586    |     ^^^^^^^^^^^
587 note: inside `fake_type::<!>`
588   --> $DIR/uninhabited-const-issue-61744.rs:4:5
589    |
590 LL |     hint_unreachable()
591    |     ^^^^^^^^^^^^^^^^^^
592 note: inside `hint_unreachable`
593   --> $DIR/uninhabited-const-issue-61744.rs:8:5
594    |
595 LL |     fake_type()
596    |     ^^^^^^^^^^^
597 note: inside `fake_type::<!>`
598   --> $DIR/uninhabited-const-issue-61744.rs:4:5
599    |
600 LL |     hint_unreachable()
601    |     ^^^^^^^^^^^^^^^^^^
602 note: inside `hint_unreachable`
603   --> $DIR/uninhabited-const-issue-61744.rs:8:5
604    |
605 LL |     fake_type()
606    |     ^^^^^^^^^^^
607 note: inside `fake_type::<!>`
608   --> $DIR/uninhabited-const-issue-61744.rs:4:5
609    |
610 LL |     hint_unreachable()
611    |     ^^^^^^^^^^^^^^^^^^
612 note: inside `hint_unreachable`
613   --> $DIR/uninhabited-const-issue-61744.rs:8:5
614    |
615 LL |     fake_type()
616    |     ^^^^^^^^^^^
617 note: inside `fake_type::<!>`
618   --> $DIR/uninhabited-const-issue-61744.rs:4:5
619    |
620 LL |     hint_unreachable()
621    |     ^^^^^^^^^^^^^^^^^^
622 note: inside `hint_unreachable`
623   --> $DIR/uninhabited-const-issue-61744.rs:8:5
624    |
625 LL |     fake_type()
626    |     ^^^^^^^^^^^
627 note: inside `fake_type::<!>`
628   --> $DIR/uninhabited-const-issue-61744.rs:4:5
629    |
630 LL |     hint_unreachable()
631    |     ^^^^^^^^^^^^^^^^^^
632 note: inside `hint_unreachable`
633   --> $DIR/uninhabited-const-issue-61744.rs:8:5
634    |
635 LL |     fake_type()
636    |     ^^^^^^^^^^^
637 note: inside `fake_type::<i32>`
638   --> $DIR/uninhabited-const-issue-61744.rs:4:5
639    |
640 LL |     hint_unreachable()
641    |     ^^^^^^^^^^^^^^^^^^
642 note: inside `<i32 as Const>::CONSTANT`
643   --> $DIR/uninhabited-const-issue-61744.rs:12:36
644    |
645 LL |     const CONSTANT: i32 = unsafe { fake_type() };
646    |                                    ^^^^^^^^^^^
647
648 note: erroneous constant used
649   --> $DIR/uninhabited-const-issue-61744.rs:18:10
650    |
651 LL |     dbg!(i32::CONSTANT);
652    |          ^^^^^^^^^^^^^
653
654 note: erroneous constant used
655   --> $DIR/uninhabited-const-issue-61744.rs:18:10
656    |
657 LL |     dbg!(i32::CONSTANT);
658    |          ^^^^^^^^^^^^^
659
660 note: erroneous constant used
661   --> $DIR/uninhabited-const-issue-61744.rs:18:10
662    |
663 LL |     dbg!(i32::CONSTANT);
664    |          ^^^^^^^^^^^^^
665
666 error: aborting due to previous error
667
668 For more information about this error, try `rustc --explain E0080`.