blob: b8224047fe4d1a68c372b8b9b4902bbe79d10ada [file] [log] [blame] [edit]
// exact-check
// consider path distance for doc aliases
// regression test for <https://github.com/rust-lang/rust/issues/146214>
const EXPECTED = [
{
'query': 'Foo::zzz',
'others': [
{ 'path': 'alias_path_distance::Foo', 'name': 'baz' },
],
},
{
'query': '"Foo::zzz"',
'others': [
{ 'path': 'alias_path_distance::Foo', 'name': 'baz' },
],
},
{
'query': 'Foo::zzzz',
'others': [
{ 'path': 'alias_path_distance::Foo', 'name': 'baz' },
],
},
{
'query': 'zzzz',
'others': [
{ 'path': 'alias_path_distance::Foo', 'name': 'baz' },
{ 'path': 'alias_path_distance::Bar', 'name': 'baz' },
],
},
];