| 1 |
error: expected `=` |
| 2 |
--> tests/ui/invalid.rs:8:24 |
| 3 |
| |
| 4 |
8 | const ASSOC: u8; //~ ERROR expected `=` |
| 5 |
| ^ |
| 6 |
|
| 7 |
error: expected `=` |
| 8 |
--> tests/ui/invalid.rs:12:19 |
| 9 |
| |
| 10 |
12 | type Assoc; //~ ERROR expected `=` |
| 11 |
| ^ |
| 12 |
|
| 13 |
error: expected `{` |
| 14 |
--> tests/ui/invalid.rs:16:19 |
| 15 |
| |
| 16 |
16 | fn assoc(); //~ ERROR expected `{` |
| 17 |
| ^ |
| 18 |
|
| 19 |
error: expected one of: `default`, `fn`, `const`, `type` |
| 20 |
--> tests/ui/invalid.rs:21:9 |
| 21 |
| |
| 22 |
21 | mac!(); //~ ERROR expected one of: `default`, `fn`, `const`, `type` |
| 23 |
| ^^^ |
| 24 |
|
| 25 |
error: unexpected token: `,` |
| 26 |
--> tests/ui/invalid.rs:25:19 |
| 27 |
| |
| 28 |
25 | #[ext(ExtraArg,)] //~ ERROR unexpected token |
| 29 |
| ^ |
| 30 |
|
| 31 |
error: use `pub impl` instead |
| 32 |
--> tests/ui/invalid.rs:28:11 |
| 33 |
| |
| 34 |
28 | #[ext(pub OldVisSyntax1)] //~ ERROR use `pub impl` instead |
| 35 |
| ^^^ |
| 36 |
|
| 37 |
error: use `pub(crate) impl` instead |
| 38 |
--> tests/ui/invalid.rs:31:11 |
| 39 |
| |
| 40 |
31 | #[ext(pub(crate) OldVisSyntax2)] //~ ERROR use `pub(crate) impl` instead |
| 41 |
| ^^^^^^^^^^ |
| 42 |
|
| 43 |
error: all associated items must have a visibility of `pub` |
| 44 |
--> tests/ui/invalid.rs:41:15 |
| 45 |
| |
| 46 |
41 | const ASSOC2: u8 = 2; //~ ERROR all associated items must have a visibility of `pub` |
| 47 |
| ^^^^^^ |
| 48 |
|
| 49 |
error: all associated items must have inherited visibility |
| 50 |
--> tests/ui/invalid.rs:48:9 |
| 51 |
| |
| 52 |
48 | pub fn assoc2(&self) {} //~ ERROR all associated items must have inherited visibility |
| 53 |
| ^^^ |
| 54 |
|
| 55 |
error: all associated items must have a visibility of `pub(crate)` |
| 56 |
--> tests/ui/invalid.rs:54:9 |
| 57 |
| |
| 58 |
54 | pub type Assoc2 = (); //~ ERROR all associated items must have a visibility of `pub(crate)` |
| 59 |
| ^^^ |
| 60 |
|
| 61 |
error: all associated items must have inherited visibility |
| 62 |
--> tests/ui/invalid.rs:61:9 |
| 63 |
| |
| 64 |
61 | pub fn assoc2(&self) {} //~ ERROR all associated items must have inherited visibility |
| 65 |
| ^^^ |