fork/rust

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

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

master
550 B15 linesraw
1error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in const types
2  --> $DIR/issue-58956.rs:7:11
3   |
4LL | const _A: impl Lam = {
5   |           ^^^^^^^^
6
7error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in variable bindings
8  --> $DIR/issue-58956.rs:9:17
9   |
10LL |     let x: Wrap<impl Lam> = Wrap(B);
11   |                 ^^^^^^^^
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0562`.