Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add #![feature(exclusive_range_pattern)] #614

Closed
wants to merge 3 commits into from

Conversation

mauriciogg
Copy link

Getting the following compilation error when directive is not specified:

error[E0658]: exclusive range pattern syntax is experimental
--> src/vga_buffer.rs:74:17
|
74 | 0x20..0x7e | b'\n' => self.write_byte(byte),
| ^^^^^^^^^^
|
= note: for more information, see rust-lang/rust#37854
= help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable

Getting the following compilation error when directive is not specified:

error[E0658]: exclusive range pattern syntax is experimental
  --> src/vga_buffer.rs:74:17
   |
74 |                 0x20..0x7e | b'\n' => self.write_byte(byte),
   |                 ^^^^^^^^^^
   |
   = note: for more information, see rust-lang/rust#37854
   = help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable
@phil-opp
Copy link
Owner

Thanks for the pull request!

I think we're using an inclusive range in the blog post (three dots), so that the feature flag shouldn't be needed.

@mauriciogg
Copy link
Author

Oh yeah you're right. That's a bug on my copying skills.

@mauriciogg mauriciogg closed this May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants