rust/tests/ui/consts/const-eval/const_fn_ptr_fail2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Plaintext
Raw Normal View History

error[E0080]: evaluation of constant value failed
2022-09-21 06:05:20 -05:00
--> $DIR/const_fn_ptr_fail2.rs:9:5
|
LL | x(y)
| ^^^^ calling non-const function `double`
|
note: inside `bar`
--> $DIR/const_fn_ptr_fail2.rs:9:5
|
LL | x(y)
| ^^^^
note: inside `Y`
--> $DIR/const_fn_ptr_fail2.rs:14:18
|
LL | const Y: usize = bar(X, 2); // FIXME: should fail to typeck someday
| ^^^^^^^^^
2022-09-21 06:05:20 -05:00
error[E0080]: evaluation of constant value failed
--> $DIR/const_fn_ptr_fail2.rs:9:5
|
LL | x(y)
| ^^^^ calling non-const function `double`
|
note: inside `bar`
--> $DIR/const_fn_ptr_fail2.rs:9:5
|
LL | x(y)
| ^^^^
note: inside `Z`
--> $DIR/const_fn_ptr_fail2.rs:15:18
|
LL | const Z: usize = bar(double, 2); // FIXME: should fail to typeck someday
| ^^^^^^^^^^^^^^
2022-09-21 06:05:20 -05:00
warning: skipping const checks
|
2022-09-21 06:05:20 -05:00
help: skipping check that does not even have a feature gate
--> $DIR/const_fn_ptr_fail2.rs:9:5
|
2022-09-21 06:05:20 -05:00
LL | x(y)
| ^^^^
2022-09-21 06:05:20 -05:00
error: aborting due to 2 previous errors; 1 warning emitted
2022-09-21 06:05:20 -05:00
For more information about this error, try `rustc --explain E0080`.