2013-08-07 18:52:33 +00: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 18:10:06 +00:00
|
|
|
extern crate xcrate_unit_struct;
|
2013-08-07 18:52:33 +00:00
|
|
|
|
|
|
|
fn main() {
|
2016-01-17 19:57:54 +00:00
|
|
|
let _ = xcrate_unit_struct::StructWithFields;
|
2016-11-30 22:35:25 +00: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 18:52:33 +00:00
|
|
|
let _ = xcrate_unit_struct::Struct;
|
|
|
|
}
|