summary refs log tree commit diff
path: root/src/test/ui/const-len-underflow-separate-spans.stderr
blob: cf97a0dc5557866a674705f84fffc56b41ce1dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error[E0080]: referenced constant has errors
  --> $DIR/const-len-underflow-separate-spans.rs:20:17
   |
LL | const LEN: usize = ONE - TWO;
   |                    --------- attempt to subtract with overflow
...
LL |     let a: [i8; LEN] = unimplemented!();
   |                 ^^^

error[E0080]: could not evaluate constant
  --> $DIR/const-len-underflow-separate-spans.rs:20:17
   |
LL |     let a: [i8; LEN] = unimplemented!();
   |                 ^^^ referenced constant has errors

error[E0080]: referenced constant has errors
  --> $DIR/const-len-underflow-separate-spans.rs:20:12
   |
LL | const LEN: usize = ONE - TWO;
   |                    --------- attempt to subtract with overflow
...
LL |     let a: [i8; LEN] = unimplemented!();
   |            ^^^^^^^^^

error[E0080]: could not evaluate constant expression
  --> $DIR/const-len-underflow-separate-spans.rs:20:12
   |
LL |     let a: [i8; LEN] = unimplemented!();
   |            ^^^^^---^
   |                 |
   |                 referenced constant has errors

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0080`.