Skip to content

Commit

Permalink
Add regression test for rust-lang#106226
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 2, 2023
1 parent 3919b71 commit e885356
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/rustdoc-ui/issue-106226.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This is a regression test for <https://github.com/rust-lang/rust/issues/106226>.
type F = [_; ()];
//~^ ERROR
9 changes: 9 additions & 0 deletions src/test/rustdoc-ui/issue-106226.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0308]: mismatched types
--> $DIR/issue-106226.rs:2:14
|
LL | type F = [_; ()];
| ^^ expected `usize`, found `()`

error: aborting due to previous error

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

0 comments on commit e885356

Please sign in to comment.