1 error[E0401]: can't use generic parameters from outer function
2 --> $DIR/issue-3021-c.rs:4:24
5 | - type parameter from outer function
8 | - help: try using a local generic parameter instead: `<T>`
9 LL | fn g(&self, x: T) -> T;
10 | ^ use of generic parameter from outer function
12 error[E0401]: can't use generic parameters from outer function
13 --> $DIR/issue-3021-c.rs:4:30
15 LL | fn siphash<T>() {
16 | - type parameter from outer function
19 | - help: try using a local generic parameter instead: `<T>`
20 LL | fn g(&self, x: T) -> T;
21 | ^ use of generic parameter from outer function
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0401`.