Skip to content

Commit e885356

Browse files
Add regression test for rust-lang#106226
1 parent 3919b71 commit e885356

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This is a regression test for <https://github.com/rust-lang/rust/issues/106226>.
2+
type F = [_; ()];
3+
//~^ ERROR
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/issue-106226.rs:2:14
3+
|
4+
LL | type F = [_; ()];
5+
| ^^ expected `usize`, found `()`
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)