mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
16 lines
275 B
Rust
16 lines
275 B
Rust
//@ 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
|
|
//~^ ERROR E0277
|
|
};
|
|
let bar: Bar<f64> = return;
|
|
//~^ ERROR E0277
|
|
let _ = bar;
|
|
}
|