Debian Codegraph @

tests/compile-fail/construct-with-errors.stderr

raw
1 error: #[construct_with] must have at least one argument
2 --> tests/compile-fail/construct-with-errors.rs:20:7
3 |
4 20 | #[construct_with()] //~ ERROR #[construct_with] must have at least one argument
5 | ^^^^^^^^^^^^^^
6
7 error: unexpected literal in nested attribute, expected ident
8 --> tests/compile-fail/construct-with-errors.rs:28:22
9 |
10 28 | #[construct_with("test")] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
11 | ^^^^^^
12
13 error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
14 --> tests/compile-fail/construct-with-errors.rs:28:7
15 |
16 28 | #[construct_with("test")] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
17 | ^^^^^^^^^^^^^^
18
19 error: expected ident
20 --> tests/compile-fail/construct-with-errors.rs:36:24
21 |
22 36 | #[construct_with(::foo:bar)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
23 | ^^^
24
25 error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
26 --> tests/compile-fail/construct-with-errors.rs:36:7
27 |
28 36 | #[construct_with(::foo:bar)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
29 | ^^^^^^^^^^^^^^
30
31 error: expected `,`
32 --> tests/compile-fail/construct-with-errors.rs:44:25
33 |
34 44 | #[construct_with(Vec<u8>)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
35 | ^
36
37 error: #[construct_with] should be of the form #[construct_with(<primitive types>)]
38 --> tests/compile-fail/construct-with-errors.rs:44:7
39 |
40 44 | #[construct_with(Vec<u8>)] //~ ERROR #[construct_with] should be of the form #[construct_with(<primitive types>)]
41 | ^^^^^^^^^^^^^^
42
43 error: arguments to #[construct_with] must be primitives
44 --> tests/compile-fail/construct-with-errors.rs:52:5
45 |
46 52 | #[construct_with(test)] //~ ERROR arguments to #[construct_with] must be primitives
47 | ^