【发布时间】:2016-02-15 18:48:47
【问题描述】:
我正在尝试修复 Rustboot,以便它可以使用 i686-unknown-linux-gnu 每晚在 Rust 1.8.0 中构建和运行。我有两个似乎无法修复的主要错误,就是这些:
main.rs:50:5: 54:6 error: the trait `core::iter::Iterator` is not implemented for the type `IntRange` [E0277]
main.rs:50 for i in range(0, 80 * 25) {
main.rs:51 unsafe {
main.rs:52 *((0xb8000 + i * 2) as *mut u16) = (background as u16) << 12;
和
main.rs:52:15: 52:44 error: the type of this value must be known in this context
main.rs:52 *((0xb8000 + i * 2) as *mut u16) = (background as u16) << 12;
关于为什么会发生这种情况以及如何解决它的任何想法?
指向 Rustboot main.rs 文件的链接:http://pastebin.com/wyDywYN8
【问题讨论】:
标签: rust