]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/issue-98432.stderr
Rollup merge of #107331 - GuillaumeGomez:cleanup-js, r=notriddle
[rust.git] / tests / ui / generics / issue-98432.stderr
1 error[E0401]: can't use generic parameters from outer function
2   --> $DIR/issue-98432.rs:5:34
3    |
4 LL | impl<T> Struct<T> {
5    |      - type parameter from outer function
6 LL |     const CONST: fn() = || {
7 LL |         struct _Obligation where T:;
8    |                           -      ^ use of generic parameter from outer function
9    |                           |
10    |                           help: try using a local generic parameter instead: `<T>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0401`.