]>
Commit | Line | Data |
---|---|---|
c1a9b12d SL |
1 | const X: u8 = 1; |
2 | static Y: u8 = 1; | |
3 | fn foo() {} | |
85aaf69f | 4 | |
c1a9b12d | 5 | impl X {} |
32a655c1 | 6 | //~^ ERROR expected type, found constant `X` |
c1a9b12d | 7 | impl Y {} |
32a655c1 | 8 | //~^ ERROR expected type, found static `Y` |
c1a9b12d | 9 | impl foo {} |
32a655c1 | 10 | //~^ ERROR expected type, found function `foo` |
223e47cc | 11 | |
d9579d0f | 12 | fn main() {} |