1 error[E0573]: expected type, found constant `X`
2 --> $DIR/issue-18119.rs:15:6
7 error[E0573]: expected type, found static `Y`
8 --> $DIR/issue-18119.rs:17:6
13 error[E0573]: expected type, found function `foo`
14 --> $DIR/issue-18119.rs:19:6
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0573`.