fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
511 B15 linesraw
1error[E0158]: associated consts cannot be referenced in patterns
2  --> $DIR/issue-68393-let-pat-assoc-constant.rs:20:40
3   |
4LL | pub fn test<A: Foo, B: Foo>(arg: EFoo, A::X: EFoo) {
5   |                                        ^^^^
6
7error[E0158]: associated consts cannot be referenced in patterns
8  --> $DIR/issue-68393-let-pat-assoc-constant.rs:22:9
9   |
10LL |     let A::X = arg;
11   |         ^^^^
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0158`.