fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
552 B14 linesraw
1error[E0401]: can't use generic parameters from outer item
2  --> $DIR/issue-98432.rs:5:34
3   |
4LL | impl<T> Struct<T> {
5   |      - type parameter from outer item
6LL |     const CONST: fn() = || {
7LL |         struct _Obligation where T:;
8   |                           -      ^ use of generic parameter from outer item
9   |                           |
10   |                           help: try introducing a local generic parameter here: `<T>`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0401`.