Changed a few tests, and changed the folder of a few of them.
This commit is contained in:
parent
bfdd90c722
commit
14e4a42245
4 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn foo(a: [0; 1]) {} //~ ERROR expected type, found `0`
|
||||
//~| ERROR expected one of `->`, `where`, or `{`, found `]`
|
||||
//~| ERROR expected one of `)`, `->`, `where`, or `{`, found `]`
|
||||
// FIXME(jseyfried): avoid emitting the second error (preexisting)
|
||||
|
||||
fn main() {}
|
||||
|
|
|
@ -12,6 +12,6 @@ mod foo {
|
|||
type T = ();
|
||||
struct S1(pub(in foo) (), pub(T), pub(crate) (), pub(((), T)));
|
||||
struct S2(pub((foo)) ());
|
||||
//~^ ERROR expected `,`, found `(`
|
||||
//~^ ERROR expected one of `)` or `,`, found `(`
|
||||
//~| ERROR cannot find type `foo` in this scope
|
||||
}
|
|
@ -13,7 +13,7 @@ macro_rules! define_struct {
|
|||
struct S1(pub $t);
|
||||
struct S2(pub (in foo) ());
|
||||
struct S3(pub $t ());
|
||||
//~^ ERROR expected `,`, found `(`
|
||||
//~^ ERROR expected one of `)` or `,`, found `(`
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ macro_rules! define_struct {
|
|||
struct S1(pub($t));
|
||||
struct S2(pub (in foo) ());
|
||||
struct S3(pub($t) ());
|
||||
//~^ ERROR expected `,`, found `(`
|
||||
//~^ ERROR expected one of `)` or `,`, found `(`
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue