2013-08-07 13:52:33 -05:00
|
|
|
// aux-build:xcrate_unit_struct.rs
|
|
|
|
|
|
|
|
// Make sure that when we have cross-crate unit structs we don't accidentally
|
|
|
|
// make values out of cross-crate structs that aren't unit.
|
|
|
|
|
2014-02-14 12:10:06 -06:00
|
|
|
extern crate xcrate_unit_struct;
|
2013-08-07 13:52:33 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-01-17 13:57:54 -06:00
|
|
|
let _ = xcrate_unit_struct::StructWithFields;
|
2016-11-30 16:35:25 -06:00
|
|
|
//~^ ERROR expected value, found struct `xcrate_unit_struct::StructWithFields`
|
2013-08-07 13:52:33 -05:00
|
|
|
let _ = xcrate_unit_struct::Struct;
|
|
|
|
}
|