mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00

While normal generics can be skipped in this case, no-names need something to show here. Before: `TyCtxt, , Symbol -> bool` After: `TyCtxt, Into<DefId>, Symbol -> bool`
26 lines
605 B
JavaScript
26 lines
605 B
JavaScript
// exact-check
|
|
// ignore-order
|
|
|
|
const EXPECTED = [
|
|
{
|
|
'query': 'tyctxt, symbol -> bool',
|
|
'others': [
|
|
{
|
|
'path': 'foo::TyCtxt',
|
|
'name': 'has_attr',
|
|
'displayType': "`TyCtxt`, Into<DefId>, `Symbol` -> `bool`",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
'query': 'tyctxt, into<defid>, symbol -> bool',
|
|
'others': [
|
|
{
|
|
'path': 'foo::TyCtxt',
|
|
'name': 'has_attr',
|
|
'displayType': "`TyCtxt`, `Into`<`DefId`>, `Symbol` -> `bool`",
|
|
},
|
|
],
|
|
},
|
|
];
|