diff options
Diffstat (limited to 'src/test/compile-fail/empty-struct-braces-expr.rs')
| -rw-r--r-- | src/test/compile-fail/empty-struct-braces-expr.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/compile-fail/empty-struct-braces-expr.rs b/src/test/compile-fail/empty-struct-braces-expr.rs index 6ae0dad0e7b..61e4a1ea397 100644 --- a/src/test/compile-fail/empty-struct-braces-expr.rs +++ b/src/test/compile-fail/empty-struct-braces-expr.rs @@ -29,9 +29,8 @@ fn main() { let e3 = E::Empty3; //~ ERROR `E::Empty3` is the name of a struct or struct variant let e3 = E::Empty3(); //~ ERROR `E::Empty3` is the name of a struct or struct variant - // FIXME: non-local struct kind should be known early (e.g. kept in `DefStruct`) - // let xe1 = XEmpty1; // ERROR `XEmpty1` is the name of a struct or struct variant - let xe1 = XEmpty1(); //~ ERROR expected function, found `empty_struct::XEmpty1` + let xe1 = XEmpty1; //~ ERROR `XEmpty1` is the name of a struct or struct variant + let xe1 = XEmpty1(); //~ ERROR `XEmpty1` is the name of a struct or struct variant let xe3 = XE::Empty3; //~ ERROR no associated item named `Empty3` found for type let xe3 = XE::Empty3(); //~ ERROR no associated item named `Empty3` found for type } |
