summary refs log tree commit diff
path: root/src/test/ui/consts/uninhabited-const-issue-61744.stderr
blob: f390676fda6d08b4d3fd2e98a148745849bf3e08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
error: any use of this value will cause an error
  --> $DIR/uninhabited-const-issue-61744.rs:4:5
   |
LL |     hint_unreachable()
   |     ^^^^^^^^^^^^^^^^^^
   |     |
   |     reached the configured maximum number of stack frames
   |     inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:8:5
   |     inside call to `fake_type::<i32>` at $DIR/uninhabited-const-issue-61744.rs:12:36
...
LL |     const CONSTANT: i32 = unsafe { fake_type() };
   |     ---------------------------------------------
   |
   = note: `#[deny(const_err)]` on by default

error[E0080]: erroneous constant used
  --> $DIR/uninhabited-const-issue-61744.rs:18:10
   |
LL |     dbg!(i32::CONSTANT);
   |          ^^^^^^^^^^^^^ referenced constant has errors

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0080`.