//@ aux-build:on_structs_and_enums_xc.rs extern crate on_structs_and_enums_xc; use on_structs_and_enums_xc::{Bar, Foo, Trait}; fn explode(x: Foo) {} //~^ ERROR E0277 fn kaboom(y: Bar) {} //~^ ERROR E0277 fn main() { }