You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0080]: evaluation of `Late::<i32>::FAIL` failed
2
+
--> $DIR/collect-in-dead-fnptr-in-const.rs:8:22
3
+
|
4
+
LL | const FAIL: () = panic!();
5
+
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/collect-in-dead-fnptr-in-const.rs:8:22
6
+
|
7
+
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
+
9
+
note: erroneous constant encountered
10
+
--> $DIR/collect-in-dead-fnptr-in-const.rs:9:28
11
+
|
12
+
LL | const FNPTR: fn() = || Self::FAIL;
13
+
| ^^^^^^^^^^
14
+
15
+
note: the above error was encountered while instantiating `fn Late::<i32>::FNPTR::{closure#0}`
16
+
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
17
+
18
+
error: aborting due to 1 previous error
19
+
20
+
For more information about this error, try `rustc --explain E0080`.
error[E0080]: evaluation of `Late::<i32>::FAIL` failed
2
+
--> $DIR/collect-in-dead-fnptr-in-const.rs:8:22
3
+
|
4
+
LL | const FAIL: () = panic!();
5
+
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/collect-in-dead-fnptr-in-const.rs:8:22
6
+
|
7
+
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
+
9
+
note: erroneous constant encountered
10
+
--> $DIR/collect-in-dead-fnptr-in-const.rs:9:28
11
+
|
12
+
LL | const FNPTR: fn() = || Self::FAIL;
13
+
| ^^^^^^^^^^
14
+
15
+
note: the above error was encountered while instantiating `fn Late::<i32>::FNPTR::{closure#0}`
16
+
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
17
+
18
+
error: aborting due to 1 previous error
19
+
20
+
For more information about this error, try `rustc --explain E0080`.
error[E0080]: evaluation of `Fail::<i32>::C` failed
2
+
--> $DIR/collect-in-dead-fnptr.rs:8:19
3
+
|
4
+
LL | const C: () = panic!();
5
+
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/collect-in-dead-fnptr.rs:8:19
6
+
|
7
+
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
+
9
+
note: erroneous constant encountered
10
+
--> $DIR/collect-in-dead-fnptr.rs:18:17
11
+
|
12
+
LL | let _ = Fail::<T>::C;
13
+
| ^^^^^^^^^^^^
14
+
15
+
note: the above error was encountered while instantiating `fn not_called::<i32>`
16
+
--> $DIR/collect-in-dead-fnptr.rs:27:28
17
+
|
18
+
LL | let _fnptr: fn() = not_called::<T>;
19
+
| ^^^^^^^^^^^^^^^
20
+
21
+
error: aborting due to 1 previous error
22
+
23
+
For more information about this error, try `rustc --explain E0080`.
error[E0080]: evaluation of `Fail::<i32>::C` failed
2
+
--> $DIR/collect-in-dead-fnptr.rs:8:19
3
+
|
4
+
LL | const C: () = panic!();
5
+
| ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/collect-in-dead-fnptr.rs:8:19
6
+
|
7
+
= note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
+
9
+
note: erroneous constant encountered
10
+
--> $DIR/collect-in-dead-fnptr.rs:18:17
11
+
|
12
+
LL | let _ = Fail::<T>::C;
13
+
| ^^^^^^^^^^^^
14
+
15
+
note: the above error was encountered while instantiating `fn not_called::<i32>`
16
+
--> $DIR/collect-in-dead-fnptr.rs:27:28
17
+
|
18
+
LL | let _fnptr: fn() = not_called::<T>;
19
+
| ^^^^^^^^^^^^^^^
20
+
21
+
error: aborting due to 1 previous error
22
+
23
+
For more information about this error, try `rustc --explain E0080`.
0 commit comments