]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0747.md
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / librustc_error_codes / error_codes / E0747.md
1 Generic arguments must be provided in the same order as the corresponding generic
2 parameters are declared.
3
4 Erroneous code example:
5
6 ```compile_fail,E0747
7 struct S<'a, T>(&'a T);
8
9 type X = S<(), 'static>; // error: the type argument is provided before the lifetime argument
10 ```