]>
Commit | Line | Data |
---|---|---|
1 | error[E0401]: can't use generic parameters from outer function | |
2 | --> $DIR/issue-5997-enum.rs:2:16 | |
3 | | | |
4 | LL | fn f<Z>() -> bool { | |
5 | | - type parameter from outer function | |
6 | LL | enum E { V(Z) } | |
7 | | - ^ use of generic parameter from outer function | |
8 | | | | |
9 | | help: try using a local generic parameter instead: `<Z>` | |
10 | ||
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0401`. |