1 error: any use of this value will cause an error
2 --> $DIR/uninhabited-const-issue-61744.rs:8:5
7 | tried to call a function with return type T passing return place of type !
8 | inside call to `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:4:5
9 | inside call to `fake_type::<i32>` at $DIR/uninhabited-const-issue-61744.rs:12:36
11 LL | const CONSTANT: i32 = unsafe { fake_type() };
12 | ---------------------------------------------
14 = note: #[deny(const_err)] on by default
16 error[E0080]: erroneous constant used
17 --> $DIR/uninhabited-const-issue-61744.rs:18:10
19 LL | dbg!(i32::CONSTANT);
20 | ^^^^^^^^^^^^^ referenced constant has errors
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0080`.