Skip to content

Commit 1a94322

Browse files
Add regression test for rust-lang#105737
1 parent ed3c3d3 commit 1a94322

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/test/rustdoc-ui/issue-105737.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
impl Vec<lol> {}
2+
//~^ ERROR
3+
4+
pub fn lol() {}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0747]: constant provided when a type was expected
2+
--> $DIR/issue-105737.rs:1:10
3+
|
4+
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

Comments
 (0)