rust-osdev/bootimage

"failed to compile `bootimage v0.4.3`"

veryverybored opened this issue · 3 comments

I cant cargo install bootimage it throws out these errors

error: expected one of , or as, found ::
--> .cargo\registry\src\github.com-1ecc6299db9ec823\bootimage-0.4.3\src\config.rs:27:17
|
27 | use std::{fs::File, io::Read};
| ^^ expected one of , or as here

error: expected one of ; or as, found ::
--> .cargo\registry\src\github.com-1ecc6299db9ec823\bootimage-0.4.3\src\config.rs:27:17
|
27 | use std::{fs::File, io::Read};
| ^^ expected one of ; or as here

error: expected item, found ;
--> .cargo\registry\src\github.com-1ecc6299db9ec823\bootimage-0.4.3\src\config.rs:27:34
|
27 | use std::{fs::File, io::Read};
| ^

Seems like your compiler doesn't understand nested import groups. They were added in Rust 1.25, so maybe you're using a too old compiler?

yep updated rust nightly and it worked thanks also you should probably close solved issues

Perfect!