2024-09-24 16:31:44 -05:00
|
|
|
// exact-check
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
// Trait-associated types (that is, associated types with no constraints)
|
|
|
|
// are treated like type parameters, so that you can "pattern match"
|
|
|
|
// them. We should avoid redundant output (no `Item=MyIter::Item` stuff)
|
|
|
|
// and should give reasonable results
|
|
|
|
{
|
|
|
|
'query': 'MyIter<T> -> Option<T>',
|
|
|
|
'correction': null,
|
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'assoc_type_unbound::MyIter',
|
|
|
|
'name': 'next',
|
|
|
|
'displayType': '&mut `MyIter` -> `Option`<`MyIter::Item`>',
|
2024-09-24 20:18:01 -05:00
|
|
|
'displayMappedNames': 'T = MyIter::Item',
|
2024-09-24 16:31:44 -05:00
|
|
|
'displayWhereClause': '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'query': 'MyIter<Item=T> -> Option<T>',
|
|
|
|
'correction': null,
|
|
|
|
'others': [
|
|
|
|
{
|
|
|
|
'path': 'assoc_type_unbound::MyIter',
|
|
|
|
'name': 'next',
|
|
|
|
'displayType': '&mut `MyIter` -> `Option`<`MyIter::Item`>',
|
2024-09-24 20:18:01 -05:00
|
|
|
'displayMappedNames': 'T = MyIter::Item',
|
2024-09-24 16:31:44 -05:00
|
|
|
'displayWhereClause': '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'query': 'MyIter<T> -> Option<Item=T>',
|
|
|
|
'correction': null,
|
|
|
|
'others': [],
|
|
|
|
},
|
|
|
|
];
|