File: construct-with-errors.stderr

package info (click to toggle)
rust-pnet-macros 0.35.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: makefile: 2
file content (47 lines) | stat: -rw-r--r-- 2,093 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
error: #[construct_with] must have at least one argument
  --> tests/compile-fail/construct-with-errors.rs:20:7
   |
20 |     #[construct_with()] //~ ERROR #[construct_with] must have at least one argument
   |       ^^^^^^^^^^^^^^

error: unexpected literal in nested attribute, expected ident
  --> tests/compile-fail/construct-with-errors.rs:28:22
   |
28 |     #[construct_with("test")] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |                      ^^^^^^

error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
  --> tests/compile-fail/construct-with-errors.rs:28:7
   |
28 |     #[construct_with("test")] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |       ^^^^^^^^^^^^^^

error: expected ident
  --> tests/compile-fail/construct-with-errors.rs:36:24
   |
36 |     #[construct_with(::foo:bar)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |                        ^^^

error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
  --> tests/compile-fail/construct-with-errors.rs:36:7
   |
36 |     #[construct_with(::foo:bar)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |       ^^^^^^^^^^^^^^

error: expected `,`
  --> tests/compile-fail/construct-with-errors.rs:44:25
   |
44 |     #[construct_with(Vec<u8>)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |                         ^

error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
  --> tests/compile-fail/construct-with-errors.rs:44:7
   |
44 |     #[construct_with(Vec<u8>)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
   |       ^^^^^^^^^^^^^^

error: arguments to #[construct_with] must be primitives
  --> tests/compile-fail/construct-with-errors.rs:52:5
   |
52 |     #[construct_with(test)] //~ ERROR arguments to #[construct_with] must be primitives
   |     ^