1
Fork 0

Use a diagnostic item instead of filtering for Index::Output

This commit is contained in:
Michael Goulet 2023-04-18 18:55:17 +00:00
parent 770c303c00
commit d84b5f9b3d
3 changed files with 4 additions and 9 deletions

View file

@ -59,6 +59,7 @@
pub trait Index<Idx: ?Sized> {
/// The returned type after indexing.
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_diagnostic_item = "IndexOutput"]
type Output: ?Sized;
/// Performs the indexing (`container[index]`) operation.