We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec9bbf commit 136a42cCopy full SHA for 136a42c
src/librustc/diagnostics.rs
@@ -195,7 +195,7 @@ impl ::std::ops::Index<u8> for Foo {
195
}
196
197
const a: Foo = Foo { a: 0u8};
198
-const b: u8 = a[0]; // Index trait is defined by the user, bad !
+const b: u8 = a[0]; // Index trait is defined by the user, bad!
199
```
200
201
The only traits which can be used have to be already implemented, not user-defined.
@@ -204,7 +204,7 @@ Example :
204
205
206
const a: &'static [i32] = &[1, 2, 3];
207
-const b: i32 = a[0]; // Good !
+const b: i32 = a[0]; // Good!
208
209
"##,
210
0 commit comments