fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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