Skip to content

Commit

Permalink
Add regression test for rust-lang#105737
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 2, 2023
1 parent ed3c3d3 commit 1a94322
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/rustdoc-ui/issue-105737.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
impl Vec<lol> {}
//~^ ERROR

pub fn lol() {}
12 changes: 12 additions & 0 deletions src/test/rustdoc-ui/issue-105737.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
error[E0747]: constant provided when a type was expected
--> $DIR/issue-105737.rs:1:10
|
LL | impl Vec<lol> {}
| ^^^
|
= help: `lol` is a function item, not a type
= help: function item types cannot be named directly

error: aborting due to previous error

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

0 comments on commit 1a94322

Please sign in to comment.