File: invalid.stderr

package info (click to toggle)
rust-easy-ext 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: makefile: 2
file content (65 lines) | stat: -rw-r--r-- 1,945 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: expected `=`
 --> tests/ui/invalid.rs:8:24
  |
8 |         const ASSOC: u8; //~ ERROR expected `=`
  |                        ^

error: expected `=`
  --> tests/ui/invalid.rs:12:19
   |
12 |         type Assoc; //~ ERROR expected `=`
   |                   ^

error: expected `{`
  --> tests/ui/invalid.rs:16:19
   |
16 |         fn assoc(); //~ ERROR expected `{`
   |                   ^

error: expected one of: `default`, `fn`, `const`, `type`
  --> tests/ui/invalid.rs:21:9
   |
21 |         mac!(); //~ ERROR expected one of: `default`, `fn`, `const`, `type`
   |         ^^^

error: unexpected token: `,`
  --> tests/ui/invalid.rs:25:19
   |
25 |     #[ext(ExtraArg,)] //~ ERROR unexpected token
   |                   ^

error: use `pub impl` instead
  --> tests/ui/invalid.rs:28:11
   |
28 |     #[ext(pub OldVisSyntax1)] //~ ERROR use `pub impl` instead
   |           ^^^

error: use `pub(crate) impl` instead
  --> tests/ui/invalid.rs:31:11
   |
31 |     #[ext(pub(crate) OldVisSyntax2)] //~ ERROR use `pub(crate) impl` instead
   |           ^^^^^^^^^^

error: all associated items must have a visibility of `pub`
  --> tests/ui/invalid.rs:41:15
   |
41 |         const ASSOC2: u8 = 2; //~ ERROR all associated items must have a visibility of `pub`
   |               ^^^^^^

error: all associated items must have inherited visibility
  --> tests/ui/invalid.rs:48:9
   |
48 |         pub fn assoc2(&self) {} //~ ERROR all associated items must have inherited visibility
   |         ^^^

error: all associated items must have a visibility of `pub(crate)`
  --> tests/ui/invalid.rs:54:9
   |
54 |         pub type Assoc2 = (); //~ ERROR all associated items must have a visibility of `pub(crate)`
   |         ^^^

error: all associated items must have inherited visibility
  --> tests/ui/invalid.rs:61:9
   |
61 |         pub fn assoc2(&self) {} //~ ERROR all associated items must have inherited visibility
   |         ^^^