fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
480 B21 linesraw
1error[E0573]: expected type, found constant `X`
2  --> $DIR/issue-18119.rs:5:6
3   |
4LL | impl X {}
5   |      ^ not a type
6
7error[E0573]: expected type, found static `Y`
8  --> $DIR/issue-18119.rs:7:6
9   |
10LL | impl Y {}
11   |      ^ not a type
12
13error[E0573]: expected type, found function `foo`
14  --> $DIR/issue-18119.rs:9:6
15   |
16LL | impl foo {}
17   |      ^^^ not a type
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0573`.