File: const-eval-overflow2.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 934,128 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (51 lines) | stat: -rw-r--r-- 1,714 bytes parent folder | download | duplicates (14)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:12:6
   |
LL |      i8::MIN - 1,
   |      ^^^^^^^^^^^ attempt to compute `i8::MIN - 1_i8`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:18:6
   |
LL |      i16::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `i16::MIN - 1_i16`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:24:6
   |
LL |      i32::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `i32::MIN - 1_i32`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:30:6
   |
LL |      i64::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `i64::MIN - 1_i64`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:36:6
   |
LL |      u8::MIN - 1,
   |      ^^^^^^^^^^^ attempt to compute `0_u8 - 1_u8`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:41:6
   |
LL |      u16::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `0_u16 - 1_u16`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:46:6
   |
LL |      u32::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `0_u32 - 1_u32`, which would overflow

error[E0080]: evaluation of constant value failed
  --> $DIR/const-eval-overflow2.rs:52:6
   |
LL |      u64::MIN - 1,
   |      ^^^^^^^^^^^^ attempt to compute `0_u64 - 1_u64`, which would overflow

error: aborting due to 8 previous errors

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