diff --git a/rust-version b/rust-version index b265e00095..edd1c533d9 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -nightly-2019-02-13 +nightly-2019-02-14 diff --git a/tests/run-pass/strings.rs b/tests/run-pass/strings.rs index d5fc80b41f..fa692ba3de 100644 --- a/tests/run-pass/strings.rs +++ b/tests/run-pass/strings.rs @@ -18,10 +18,17 @@ fn fat_pointer_on_32_bit() { Some(5).expect("foo"); } +fn str_indexing() { + let mut x = "Hello".to_string(); + let _v = &mut x[..3]; // Test IndexMut on String. +} + fn main() { assert_eq!(empty(), ""); assert_eq!(hello(), "Hello, world!"); assert_eq!(hello_bytes(), b"Hello, world!"); assert_eq!(hello_bytes_fat(), b"Hello, world!"); + fat_pointer_on_32_bit(); // Should run without crashing. + str_indexing(); }