]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3021-c.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-3021-c.stderr
1 error[E0401]: can't use type parameters from outer function
2   --> $DIR/issue-3021-c.rs:4:24
3    |
4 LL | fn siphash<T>() {
5    |            - type variable from outer function
6 ...
7 LL |         fn g(&self, x: T) -> T;  //~ ERROR can't use type parameters from outer function
8    |            -           ^ use of type variable from outer function
9    |            |
10    |            help: try using a local type parameter instead: `g<T>`
11
12 error[E0401]: can't use type parameters from outer function
13   --> $DIR/issue-3021-c.rs:4:30
14    |
15 LL | fn siphash<T>() {
16    |            - type variable from outer function
17 ...
18 LL |         fn g(&self, x: T) -> T;  //~ ERROR can't use type parameters from outer function
19    |            -                 ^ use of type variable from outer function
20    |            |
21    |            help: try using a local type parameter instead: `g<T>`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0401`.