Use a diagnostic item instead of filtering for Index::Output
This commit is contained in:
parent
770c303c00
commit
d84b5f9b3d
3 changed files with 4 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue