mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Add regression test for #106226
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// This is a regression test for <https://github.com/rust-lang/rust/issues/106226>.
|
||||
type F = [_; ()];
|
||||
//~^ ERROR
|
||||
@@ -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`.
|
||||
Reference in New Issue
Block a user