Skip to content

Commit 12b4b72

Browse files
committed
Add test for issue 151048
1 parent 80bd069 commit 12b4b72

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(min_generic_const_args)]
2+
#![expect(incomplete_features)]
3+
4+
struct Y {
5+
stuff: [u8; { ([1, 2], 3, [4, 5]) }], //~ ERROR expected `usize`, found const tuple
6+
}
7+
8+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected `usize`, found const tuple
2+
--> $DIR/tuple_expr_arg_bad-issue-151048.rs:5:19
3+
|
4+
LL | stuff: [u8; { ([1, 2], 3, [4, 5]) }],
5+
| ^^^^^^^^^^^^^^^^^^^
6+
7+
error: aborting due to 1 previous error
8+

0 commit comments

Comments
 (0)