]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-68393-let-pat-assoc-constant.stderr
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / ui / pattern / issue-68393-let-pat-assoc-constant.stderr
1 error[E0158]: associated consts cannot be referenced in patterns
2   --> $DIR/issue-68393-let-pat-assoc-constant.rs:20:40
3    |
4 LL | pub fn test<A: Foo, B: Foo>(arg: EFoo, A::X: EFoo) {
5    |                                        ^^^^
6
7 error[E0158]: associated consts cannot be referenced in patterns
8   --> $DIR/issue-68393-let-pat-assoc-constant.rs:22:9
9    |
10 LL |     let A::X = arg;
11    |         ^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0158`.