blob: caf7e0fba07a343aaf1e1238b3fcd10795b87c49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Generic arguments were not provided in the same order as the corresponding
generic parameters are declared.
Erroneous code example:
```compile_fail,E0747
struct S<'a, T>(&'a T);
type X = S<(), 'static>; // error: the type argument is provided before the
// lifetime argument
```
The argument order should be changed to match the parameter declaration
order, as in the following:
```
struct S<'a, T>(&'a T);
type X = S<'static, ()>; // ok
```
|