]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const_fn_ptr_fail2.stderr
ty: convert `ErrorHandled::Reported` to `ConstKind::Error`.
[rust.git] / src / test / ui / consts / const-eval / const_fn_ptr_fail2.stderr
1 warning: skipping const checks
2   --> $DIR/const_fn_ptr_fail2.rs:13:5
3    |
4 LL |     x(y)
5    |     ^^^^
6
7 error[E0080]: evaluation of constant expression failed
8   --> $DIR/const_fn_ptr_fail2.rs:20:5
9    |
10 LL |     assert_eq!(Y, 4);
11    |     ^^^^^^^^^^^-^^^^^
12    |                |
13    |                referenced constant has errors
14    |
15    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error[E0080]: evaluation of constant expression failed
18   --> $DIR/const_fn_ptr_fail2.rs:22:5
19    |
20 LL |     assert_eq!(Z, 4);
21    |     ^^^^^^^^^^^-^^^^^
22    |                |
23    |                referenced constant has errors
24    |
25    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
26
27 error: aborting due to 2 previous errors; 1 warning emitted
28
29 For more information about this error, try `rustc --explain E0080`.