blob: c1ae42b3939dc6a759f6ea0b1d284c09ba01ffe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
error[E0080]: evaluation panicked: explicit panic
--> $DIR/collect-in-promoted-const.rs:11:19
|
LL | const C: () = panic!();
| ^^^^^^^^ evaluation of `Fail::<i32>::C` failed here
note: erroneous constant encountered
--> $DIR/collect-in-promoted-const.rs:22:21
|
LL | let _val = &Fail::<T>::C;
| ^^^^^^^^^^^^
note: the above error was encountered while instantiating `fn f::<i32>`
--> $DIR/collect-in-promoted-const.rs:27:5
|
LL | f::<i32>();
| ^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.
|