]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/bad-type-env-capture.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / bad-type-env-capture.stderr
1 error[E0401]: can't use generic parameters from outer function
2   --> $DIR/bad-type-env-capture.rs:2:15
3    |
4 LL | fn foo<T>() {
5    |        - type parameter from outer function
6 LL |     fn bar(b: T) { }
7    |        ---    ^ use of generic parameter from outer function
8    |        |
9    |        help: try using a local generic parameter instead: `bar<T>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0401`.