Skip to content

Commit 7bee757

Browse files
authored
Rollup merge of rust-lang#110432 - compiler-errors:unsatisfied-index-impl, r=cjgillot
Report more detailed reason why `Index` impl is not satisfied Fixes rust-lang#110373
2 parents 62996a4 + 2b8b8b8 commit 7bee757

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
pub trait Index<Idx: ?Sized> {
6060
/// The returned type after indexing.
6161
#[stable(feature = "rust1", since = "1.0.0")]
62+
#[rustc_diagnostic_item = "IndexOutput"]
6263
type Output: ?Sized;
6364

6465
/// Performs the indexing (`container[index]`) operation.

0 commit comments

Comments
 (0)