]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-3021-c.stderr
Auto merge of #100395 - Dylan-DPC:rollup-ajrwo1s, r=Dylan-DPC
[rust.git] / src / test / ui / resolve / issue-3021-c.stderr
1 error[E0401]: can't use generic parameters from outer function
2   --> $DIR/issue-3021-c.rs:4:24
3    |
4 LL | fn siphash<T>() {
5    |            - type parameter from outer function
6 LL |
7 LL |     trait U {
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
11
12 error[E0401]: can't use generic parameters from outer function
13   --> $DIR/issue-3021-c.rs:4:30
14    |
15 LL | fn siphash<T>() {
16    |            - type parameter from outer function
17 LL |
18 LL |     trait U {
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
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0401`.