We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3c3d3 commit 1a94322Copy full SHA for 1a94322
src/test/rustdoc-ui/issue-105737.rs
@@ -0,0 +1,4 @@
1
+impl Vec<lol> {}
2
+//~^ ERROR
3
+
4
+pub fn lol() {}
src/test/rustdoc-ui/issue-105737.stderr
@@ -0,0 +1,12 @@
+error[E0747]: constant provided when a type was expected
+ --> $DIR/issue-105737.rs:1:10
+ |
+LL | impl Vec<lol> {}
5
+ | ^^^
6
7
+ = help: `lol` is a function item, not a type
8
+ = help: function item types cannot be named directly
9
10
+error: aborting due to previous error
11
12
+For more information about this error, try `rustc --explain E0747`.
0 commit comments