summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/associated-const-type-parameter-arms.stderr
blob: 1ccf9febd4bdc3e3b39883effc47bdc9084155d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0158]: associated consts cannot be referenced in patterns
  --> $DIR/associated-const-type-parameter-arms.rs:20:9
   |
LL |         A::X => println!("A::X"),
   |         ^^^^

error[E0158]: associated consts cannot be referenced in patterns
  --> $DIR/associated-const-type-parameter-arms.rs:22:9
   |
LL |         B::X => println!("B::X"),
   |         ^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0158`.