|
| 1 | +// ignore-tidy-linelength |
| 2 | + |
| 3 | +#![no_core] |
| 4 | +#![feature(generic_associated_types, lang_items, no_core)] |
| 5 | + |
| 6 | +#[lang = "sized"] |
| 7 | +pub trait Sized {} |
| 8 | + |
| 9 | +pub trait Display {} |
| 10 | + |
| 11 | +// @has gats.json |
| 12 | +pub trait LendingIterator { |
| 13 | + // @count - "$.index[*][?(@.name=='LendingItem')].inner.generics.params[*]" 1 |
| 14 | + // @is - "$.index[*][?(@.name=='LendingItem')].inner.generics.params[*].name" \"\'a\" |
| 15 | + // @count - "$.index[*][?(@.name=='LendingItem')].inner.generics.where_predicates[*]" 1 |
| 16 | + // @is - "$.index[*][?(@.name=='LendingItem')].inner.generics.where_predicates[*].bound_predicate.ty.inner" \"Self\" |
| 17 | + // @is - "$.index[*][?(@.name=='LendingItem')].inner.generics.where_predicates[*].bound_predicate.bounds[*].outlives" \"\'a\" |
| 18 | + // @count - "$.index[*][?(@.name=='LendingItem')].inner.bounds[*]" 1 |
| 19 | + type LendingItem<'a>: Display where Self: 'a; |
| 20 | + |
| 21 | + // @is - "$.index[*][?(@.name=='lending_next')].inner.decl.output.kind" \"qualified_path\" |
| 22 | + // @count - "$.index[*][?(@.name=='lending_next')].inner.decl.output.inner.args.angle_bracketed.args[*]" 1 |
| 23 | + // @count - "$.index[*][?(@.name=='lending_next')].inner.decl.output.inner.args.angle_bracketed.bindings[*]" 0 |
| 24 | + // @is - "$.index[*][?(@.name=='lending_next')].inner.decl.output.inner.self_type.inner" \"Self\" |
| 25 | + // @is - "$.index[*][?(@.name=='lending_next')].inner.decl.output.inner.name" \"LendingItem\" |
| 26 | + fn lending_next<'a>(&'a self) -> Self::LendingItem<'a>; |
| 27 | +} |
| 28 | + |
| 29 | +// @has gats.json |
| 30 | +pub trait Iterator { |
| 31 | + // @count - "$.index[*][?(@.name=='Item')].inner.generics.params[*]" 0 |
| 32 | + // @count - "$.index[*][?(@.name=='Item')].inner.generics.where_predicates[*]" 0 |
| 33 | + // @count - "$.index[*][?(@.name=='Item')].inner.bounds[*]" 1 |
| 34 | + type Item: Display; |
| 35 | + |
| 36 | + // @is - "$.index[*][?(@.name=='next')].inner.decl.output.kind" \"qualified_path\" |
| 37 | + // @count - "$.index[*][?(@.name=='next')].inner.decl.output.inner.args.angle_bracketed.args[*]" 0 |
| 38 | + // @count - "$.index[*][?(@.name=='next')].inner.decl.output.inner.args.angle_bracketed.bindings[*]" 0 |
| 39 | + // @is - "$.index[*][?(@.name=='next')].inner.decl.output.inner.self_type.inner" \"Self\" |
| 40 | + // @is - "$.index[*][?(@.name=='next')].inner.decl.output.inner.name" \"Item\" |
| 41 | + fn next<'a>(&'a self) -> Self::Item; |
| 42 | +} |
0 commit comments