]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/indexing-requires-a-uint.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / indexing-requires-a-uint.rs
index 3d3b7bc1bcb430b30416e4f77ac0a2c656a220c8..354d7b936485bd0505c02eb71758860d5400d5a4 100644 (file)
@@ -13,7 +13,7 @@
 
 fn main() {
     fn bar<T>(_: T) {}
-    [0][0u8]; //~ ERROR: the trait `core::ops::Index<u8>` is not implemented
+    [0][0u8]; //~ ERROR: `[_]: std::ops::Index<u8>` is not satisfied
 
     [0][0]; // should infer to be a usize