]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5997-struct.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-5997-struct.stderr
1 error[E0401]: can't use type parameters from outer function
2   --> $DIR/issue-5997-struct.rs:12:14
3    |
4 LL | fn f<T>() -> bool {
5    |    - - type variable from outer function
6    |    |
7    |    try adding a local type parameter in this method instead
8 LL |     struct S(T); //~ ERROR can't use type parameters from outer function
9    |              ^ use of type variable from outer function
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0401`.