]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5997-enum.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-5997-enum.stderr
1 error[E0401]: can't use type parameters from outer function
2   --> $DIR/issue-5997-enum.rs:2:16
3    |
4 LL | fn f<Z>() -> bool {
5    |    - - type variable from outer function
6    |    |
7    |    try adding a local type parameter in this method instead
8 LL |     enum E { V(Z) }
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`.