mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
16 lines
511 B
Plaintext
16 lines
511 B
Plaintext
error[E0158]: associated consts cannot be referenced in patterns
|
|
--> $DIR/issue-68393-let-pat-assoc-constant.rs:22:9
|
|
|
|
|
LL | let A::X = arg;
|
|
| ^^^^
|
|
|
|
error[E0158]: associated consts cannot be referenced in patterns
|
|
--> $DIR/issue-68393-let-pat-assoc-constant.rs:20:40
|
|
|
|
|
LL | pub fn test<A: Foo, B: Foo>(arg: EFoo, A::X: EFoo) {
|
|
| ^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0158`.
|