2021-02-08 16:15:45 -06:00
|
|
|
// 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 main() {
|
|
|
|
let foo = Foo {
|
|
|
|
x: 3
|
2022-08-16 23:57:17 -05:00
|
|
|
//~^ ERROR E0277
|
2021-02-08 16:15:45 -06:00
|
|
|
};
|
|
|
|
let bar: Bar<f64> = return;
|
|
|
|
//~^ ERROR E0277
|
|
|
|
let _ = bar;
|
|
|
|
}
|