]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const_fn_ptr_fail2.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const_fn_ptr_fail2.stderr
1 error[E0080]: evaluation of constant expression failed
2 --> $DIR/const_fn_ptr_fail2.rs:20:5
3 |
4 LL | assert_eq!(Y, 4);
5 | ^^^^^^^^^^^-^^^^^
6 | |
7 | referenced constant has errors
8 |
9 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error[E0080]: evaluation of constant expression failed
12 --> $DIR/const_fn_ptr_fail2.rs:22:5
13 |
14 LL | assert_eq!(Z, 4);
15 | ^^^^^^^^^^^-^^^^^
16 | |
17 | referenced constant has errors
18 |
19 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
20
21 warning: skipping const checks
22 |
23 help: skipping check for `const_fn_fn_ptr_basics` feature
24 --> $DIR/const_fn_ptr_fail2.rs:12:14
25 |
26 LL | const fn bar(x: fn(usize) -> usize, y: usize) -> usize {
27 | ^
28 help: skipping check for `const_fn_fn_ptr_basics` feature
29 --> $DIR/const_fn_ptr_fail2.rs:13:5
30 |
31 LL | x(y)
32 | ^
33 help: skipping check that does not even have a feature gate
34 --> $DIR/const_fn_ptr_fail2.rs:13:5
35 |
36 LL | x(y)
37 | ^^^^
38
39 error: aborting due to 2 previous errors; 1 warning emitted
40
41 For more information about this error, try `rustc --explain E0080`.