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

69 lines
3.0 KiB
Plaintext
Raw Normal View History

2018-06-02 16:38:57 -05:00
error[E0080]: could not evaluate constant expression
--> $DIR/infinite-recursion-const-fn.rs:15:12
2018-01-16 03:15:41 -06:00
|
2018-06-02 16:38:57 -05:00
LL | const fn a() -> usize { b() }
| ---
2018-03-05 03:21:11 -06:00
| |
| 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`
2018-06-02 16:38:57 -05:00
LL | const ARR: [i32; a()] = [5; 6]; //~ ERROR could not evaluate constant expression
| ^^^^^^---^
2018-06-02 16:38:57 -05:00
| |
| inside call to `a`
2018-01-16 03:15:41 -06:00
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0080`.