Add regression test for #106226
This commit is contained in:
parent
3919b71b48
commit
e8853563df
3
src/test/rustdoc-ui/issue-106226.rs
Normal file
3
src/test/rustdoc-ui/issue-106226.rs
Normal file
@ -0,0 +1,3 @@
|
||||
// This is a regression test for <https://github.com/rust-lang/rust/issues/106226>.
|
||||
type F = [_; ()];
|
||||
//~^ ERROR
|
9
src/test/rustdoc-ui/issue-106226.stderr
Normal file
9
src/test/rustdoc-ui/issue-106226.stderr
Normal file
@ -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`.
|
Loading…
Reference in New Issue
Block a user