rust/src/test/ui/infinite-recursion-const-fn.stderr

73 lines
3.1 KiB
Plaintext
Raw Normal View History

2018-01-16 03:15:41 -06:00
error[E0080]: constant evaluation error
2018-03-05 03:21:11 -06:00
--> $DIR/infinite-recursion-const-fn.rs:14:25
2018-01-16 03:15:41 -06:00
|
2018-03-05 03:21:11 -06:00
LL | const fn a() -> usize { b() } //~ ERROR constant evaluation error
| ^^^
| |
| reached the configured maximum number of stack frames
| inside call to `b`
LL | const fn b() -> usize { a() }
| ---
| |
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
| inside call to `a`
LL | const ARR: [i32; a()] = [5; 6];
| --- inside call to `a`
|
note: for constant expression here
--> $DIR/infinite-recursion-const-fn.rs:16:1
|
LL | const ARR: [i32; a()] = [5; 6];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-01-16 03:15:41 -06:00
error: aborting due to previous error
2018-03-05 03:21:11 -06:00
If you want more information on this error, try using "rustc --explain E0080"