1 // aux-build:xcrate_unit_struct.rs
3 // Make sure that when we have cross-crate unit structs we don't accidentally
4 // make values out of cross-crate structs that aren't unit.
6 extern crate xcrate_unit_struct;
9 let _ = xcrate_unit_struct::StructWithFields;
10 //~^ ERROR expected value, found struct `xcrate_unit_struct::StructWithFields`
11 let _ = xcrate_unit_struct::Struct;