]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/uninhabited-const-issue-61744.stderr
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / ui / consts / uninhabited-const-issue-61744.stderr
1 error: any use of this value will cause an error
2 --> $DIR/uninhabited-const-issue-61744.rs:8:5
3 |
4 LL | fake_type()
5 | ^^^^^^^^^^^
6 | |
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
10 ...
11 LL | const CONSTANT: i32 = unsafe { fake_type() };
12 | ---------------------------------------------
13 |
14 = note: #[deny(const_err)] on by default
15
16 error[E0080]: erroneous constant used
17 --> $DIR/uninhabited-const-issue-61744.rs:18:10
18 |
19 LL | dbg!(i32::CONSTANT);
20 | ^^^^^^^^^^^^^ referenced constant has errors
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0080`.