]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/bad-type-env-capture.stderr
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / 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: `<T>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0401`.