Skip to content

Commit 14e4a42

Browse files
committed
Changed a few tests, and changed the folder of a few of them.
1 parent bfdd90c commit 14e4a42

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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() {}

src/test/compile-fail/privacy/restricted/tuple-struct-fields/test.rs renamed to src/test/ui/tuple-struct-fields/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ mod foo {
1212
type T = ();
1313
struct S1(pub(in foo) (), pub(T), pub(crate) (), pub(((), T)));
1414
struct S2(pub((foo)) ());
15-
//~^ ERROR expected `,`, found `(`
15+
//~^ ERROR expected one of `)` or `,`, found `(`
1616
//~| ERROR cannot find type `foo` in this scope
1717
}

src/test/compile-fail/privacy/restricted/tuple-struct-fields/test2.rs renamed to src/test/ui/tuple-struct-fields/test2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ macro_rules! define_struct {
1313
struct S1(pub $t);
1414
struct S2(pub (in foo) ());
1515
struct S3(pub $t ());
16-
//~^ ERROR expected `,`, found `(`
16+
//~^ ERROR expected one of `)` or `,`, found `(`
1717
}
1818
}
1919

src/test/compile-fail/privacy/restricted/tuple-struct-fields/test3.rs renamed to src/test/ui/tuple-struct-fields/test3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ macro_rules! define_struct {
1313
struct S1(pub($t));
1414
struct S2(pub (in foo) ());
1515
struct S3(pub($t) ());
16-
//~^ ERROR expected `,`, found `(`
16+
//~^ ERROR expected one of `)` or `,`, found `(`
1717
}
1818
}
1919

0 commit comments

Comments
 (0)