aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rs
blob: 88c544923b54d69fe5497321e1e689780b9fc450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct S1<T>;
struct S2<T>(u32);
struct S3<T> { u: u32 }

struct S4<>;
struct S5<'a>;
struct S6<'a:>;
struct S7<'a: 'b>;
struct S8<'a: 'b + >;
struct S9<'a: 'b + 'c>;
struct S10<'a,>;
struct S11<'a, 'b>;
struct S12<'a: 'b+, 'b: 'c,>;

struct S13<T>;
struct S14<T, U>;
struct S15<'a, T, U>;