]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-98432.stderr
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / 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`.