File: invalid_offset.stderr

package info (click to toggle)
rust-time 0.3.47-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: makefile: 2
file content (49 lines) | stat: -rw-r--r-- 1,419 bytes parent folder | download
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
error: invalid component: hour was 26
 --> tests/integration/compile-fail/invalid_offset.rs:4:22
  |
4 |     let _ = offset!(+26);
  |                      ^^

error: invalid component: minute was 60
 --> tests/integration/compile-fail/invalid_offset.rs:5:24
  |
5 |     let _ = offset!(+0:60);
  |                        ^^

error: invalid component: second was 60
 --> tests/integration/compile-fail/invalid_offset.rs:6:27
  |
6 |     let _ = offset!(+0:00:60);
  |                           ^^

error: unexpected token: 0
 --> tests/integration/compile-fail/invalid_offset.rs:7:21
  |
7 |     let _ = offset!(0);
  |                     ^

error: missing component: sign
 --> tests/integration/compile-fail/invalid_offset.rs:8:13
  |
8 |     let _ = offset!();
  |             ^^^^^^^^^
  |
  = note: this error originates in the macro `offset` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid component: hour was 0a
 --> tests/integration/compile-fail/invalid_offset.rs:9:22
  |
9 |     let _ = offset!(+0a);
  |                      ^^

error: invalid component: minute was 0a
  --> tests/integration/compile-fail/invalid_offset.rs:10:24
   |
10 |     let _ = offset!(+0:0a);
   |                        ^^

error: invalid component: second was 0a
  --> tests/integration/compile-fail/invalid_offset.rs:11:27
   |
11 |     let _ = offset!(+0:00:0a);
   |                           ^^