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
7 LL | fn g(&self, x: T) -> T;
8 | - ^ use of generic parameter from outer function
10 | help: try using a local generic parameter instead: `g<T>`
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
18 LL | fn g(&self, x: T) -> T;
19 | - ^ use of generic parameter from outer function
21 | help: try using a local generic parameter instead: `g<T>`
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0401`.