2013-08-07 11:52:33 -07: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 10:10:06 -08:00
|
|
|
extern crate xcrate_unit_struct;
|
2013-08-07 11:52:33 -07:00
|
|
|
|
|
|
|
fn main() {
|
2016-01-17 22:57:54 +03:00
|
|
|
let _ = xcrate_unit_struct::StructWithFields;
|
2016-12-01 01:35:25 +03:00
|
|
|
//~^ ERROR expected value, found struct `xcrate_unit_struct::StructWithFields`
|
2023-11-08 21:59:10 +00:00
|
|
|
let _ = xcrate_unit_struct::StructWithPrivFields;
|
|
|
|
//~^ ERROR expected value, found struct `xcrate_unit_struct::StructWithPrivFields`
|
2013-08-07 11:52:33 -07:00
|
|
|
let _ = xcrate_unit_struct::Struct;
|
|
|
|
}
|