]> git.lizzy.rs Git - rust.git/blob - src/test/ui/xcrate/xcrate-unit-struct.rs
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup
[rust.git] / src / test / ui / xcrate / xcrate-unit-struct.rs
1 // aux-build:xcrate_unit_struct.rs
2
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.
5
6 extern crate xcrate_unit_struct;
7
8 fn main() {
9     let _ = xcrate_unit_struct::StructWithFields;
10     //~^ ERROR expected value, found struct `xcrate_unit_struct::StructWithFields`
11     let _ = xcrate_unit_struct::Struct;
12 }