Skip to content

Commit df0c6a9

Browse files
committed
Built, corrected, and run tests. Added expected stderr files.
1 parent 14e4a42 commit df0c6a9

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

src/test/compile-fail/issue-39616.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
fn foo(a: [0; 1]) {} //~ ERROR expected type, found `0`
12-
//~| ERROR expected one of `)`, `->`, `where`, or `{`, found `]`
12+
//~| ERROR expected one of `)`, `,`, `->`, `where`, or `{`, found `]`
1313
// FIXME(jseyfried): avoid emitting the second error (preexisting)
1414

1515
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error: expected one of `)` or `,`, found `(`
2+
--> $DIR/test.rs:14:26
3+
|
4+
LL | struct S2(pub((foo)) ());
5+
| ^ expected one of `)` or `,` here
6+
7+
error[E0412]: cannot find type `foo` in this scope
8+
--> $DIR/test.rs:14:20
9+
|
10+
LL | struct S2(pub((foo)) ());
11+
| ^^^ not found in this scope
12+
13+
error[E0601]: `main` function not found in crate `test`
14+
|
15+
= note: consider adding a `main` function to `$DIR/test.rs`
16+
17+
error: aborting due to 3 previous errors
18+
19+
Some errors occurred: E0412, E0601.
20+
For more information about an error, try `rustc --explain E0412`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: expected one of `)` or `,`, found `(`
2+
--> $DIR/test2.rs:15:26
3+
|
4+
LL | struct S3(pub $t ());
5+
| ^ expected one of `)` or `,` here
6+
...
7+
LL | define_struct! { (foo) }
8+
| ------------------------ in this macro invocation
9+
10+
error: aborting due to previous error
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: expected one of `)` or `,`, found `(`
2+
--> $DIR/test3.rs:15:27
3+
|
4+
LL | struct S3(pub($t) ());
5+
| ^ expected one of `)` or `,` here
6+
...
7+
LL | define_struct! { foo }
8+
| ---------------------- in this macro invocation
9+
10+
error: aborting due to previous error
11+

0 commit comments

Comments
 (0)