1 error[E0080]: evaluation of constant expression failed
2 --> $DIR/const_fn_ptr_fail2.rs:20:5
7 | referenced constant has errors
9 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
11 error[E0080]: evaluation of constant expression failed
12 --> $DIR/const_fn_ptr_fail2.rs:22:5
14 LL | assert_eq!(Z, 4);
17 | referenced constant has errors
19 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
21 warning: skipping const checks
23 help: skipping check for `const_fn_fn_ptr_basics` feature
24 --> $DIR/const_fn_ptr_fail2.rs:12:14
26 LL | const fn bar(x: fn(usize) -> usize, y: usize) -> usize {
28 help: skipping check for `const_fn_fn_ptr_basics` feature
29 --> $DIR/const_fn_ptr_fail2.rs:13:5
33 help: skipping check that does not even have a feature gate
34 --> $DIR/const_fn_ptr_fail2.rs:13:5
39 error: aborting due to 2 previous errors; 1 warning emitted
41 For more information about this error, try `rustc --explain E0080`.