diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 4597ae40161d..e10349765899 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -188,7 +188,7 @@ use std::ops::Index; struct Foo { a: u8 } -impl ::std::ops::Index for Foo { +impl Index for Foo { type Output = u8; fn index<'a>(&'a self, idx: u8) -> &'a u8 { &self.a }