Skip to content

Commit

Permalink
add #![feature(exclusive_range_pattern)]
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mauriciogg authored May 27, 2019
1 parent c8d1bbe commit 7096141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![feature(custom_test_frameworks)]
#![test_runner(blog_os::test_runner)]
#![reexport_test_harness_main = "test_main"]
#![feature(exclusive_range_pattern)]

use blog_os::println;
use core::panic::PanicInfo;
Expand Down

0 comments on commit 7096141

Please sign in to comment.