diff options
Diffstat (limited to 'src/test/ui/borrowck/index-mut-help-with-impl.rs')
-rw-r--r-- | src/test/ui/borrowck/index-mut-help-with-impl.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/borrowck/index-mut-help-with-impl.rs b/src/test/ui/borrowck/index-mut-help-with-impl.rs deleted file mode 100644 index 44b57c4a0..000000000 --- a/src/test/ui/borrowck/index-mut-help-with-impl.rs +++ /dev/null @@ -1,10 +0,0 @@ -// When mutably indexing a type that implements `Index` and `IndexMut` but -// `Index::index` is being used specifically, the normal special help message -// should not mention a missing `IndexMut` impl. - -fn main() { - use std::ops::Index; - - let v = String::from("dinosaur"); - Index::index(&v, 1..2).make_ascii_uppercase(); //~ ERROR -} |