wayland-rs: 0.23.0 does not compile (error: expected item, found `;`)
I’m having trouble compiling wayland-client on Linux.
$ cargo build
Updating crates.io index
Compiling wayland-client v0.23.0
error: expected item, found `;`
--> [...]/target/debug/build/wayland-client-6ba647aa8660f182/out/wayland_api.rs:19:5
|
19 | ;
| ^ help: consider removing this semicolon
error: aborting due to previous error
error: Could not compile `wayland-client`.
I’m using Arch Linux. I found the problem when I tried to use glutin. I also tested 0.22 and 0.21 and they seem to work.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (5 by maintainers)
Ok it seems like that was the problem. I realized I had two versions of rustfmt installed. rustfmt
0.6.3in ~/.cargo/bin and1.0.0-stable (43206f4 2018-11-30)in /usr/bin. I uninstalled the one in ~/.cargo/bin and now it works, thank you! 😃