1 error[E0401]: can't use generic parameters from outer function
2 --> $DIR/issue-5997-struct.rs:2:14
4 LL | fn f<T>() -> bool {
5 | - - type parameter from outer function
7 | try adding a local generic parameter in this method instead
9 | ^ use of generic parameter from outer function
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0401`.