Skip to content

Commit b8a7bfb

Browse files
committed
Reference issue test originated from
1 parent 4cd2fab commit b8a7bfb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/test/ui/typeck/struct-enum-wrong-args.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Regression test of #86481.
12
struct Wrapper(i32);
23
struct DoubleWrapper(i32, i32);
34

src/test/ui/typeck/struct-enum-wrong-args.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2-
--> $DIR/struct-enum-wrong-args.rs:5:13
2+
--> $DIR/struct-enum-wrong-args.rs:6:13
33
|
44
LL | let _ = Some(3, 2);
55
| ^^^^ - - supplied 2 arguments
66
| |
77
| expected 1 argument
88

99
error[E0061]: this enum variant takes 1 argument but 3 arguments were supplied
10-
--> $DIR/struct-enum-wrong-args.rs:6:13
10+
--> $DIR/struct-enum-wrong-args.rs:7:13
1111
|
1212
LL | let _ = Ok(3, 6, 2);
1313
| ^^ - - - supplied 3 arguments
1414
| |
1515
| expected 1 argument
1616

1717
error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
18-
--> $DIR/struct-enum-wrong-args.rs:7:13
18+
--> $DIR/struct-enum-wrong-args.rs:8:13
1919
|
2020
LL | let _ = Ok();
2121
| ^^-- supplied 0 arguments
2222
| |
2323
| expected 1 argument
2424

2525
error[E0061]: this struct takes 1 argument but 0 arguments were supplied
26-
--> $DIR/struct-enum-wrong-args.rs:8:13
26+
--> $DIR/struct-enum-wrong-args.rs:9:13
2727
|
2828
LL | let _ = Wrapper();
2929
| ^^^^^^^-- supplied 0 arguments
3030
| |
3131
| expected 1 argument
3232

3333
error[E0061]: this struct takes 1 argument but 2 arguments were supplied
34-
--> $DIR/struct-enum-wrong-args.rs:9:13
34+
--> $DIR/struct-enum-wrong-args.rs:10:13
3535
|
3636
LL | let _ = Wrapper(5, 2);
3737
| ^^^^^^^ - - supplied 2 arguments
3838
| |
3939
| expected 1 argument
4040

4141
error[E0061]: this struct takes 2 arguments but 0 arguments were supplied
42-
--> $DIR/struct-enum-wrong-args.rs:10:13
42+
--> $DIR/struct-enum-wrong-args.rs:11:13
4343
|
4444
LL | let _ = DoubleWrapper();
4545
| ^^^^^^^^^^^^^-- supplied 0 arguments
4646
| |
4747
| expected 2 arguments
4848

4949
error[E0061]: this struct takes 2 arguments but 1 argument was supplied
50-
--> $DIR/struct-enum-wrong-args.rs:11:13
50+
--> $DIR/struct-enum-wrong-args.rs:12:13
5151
|
5252
LL | let _ = DoubleWrapper(5);
5353
| ^^^^^^^^^^^^^ - supplied 1 argument
5454
| |
5555
| expected 2 arguments
5656

5757
error[E0061]: this struct takes 2 arguments but 3 arguments were supplied
58-
--> $DIR/struct-enum-wrong-args.rs:12:13
58+
--> $DIR/struct-enum-wrong-args.rs:13:13
5959
|
6060
LL | let _ = DoubleWrapper(5, 2, 7);
6161
| ^^^^^^^^^^^^^ - - - supplied 3 arguments

0 commit comments

Comments
 (0)