rust/src/test/ui/traits/trait-bounds-on-structs-and-enums-xc1.rs
2018-12-25 21:08:33 -07:00

16 lines
313 B
Rust

// aux-build:trait_bounds_on_structs_and_enums_xc.rs
extern crate trait_bounds_on_structs_and_enums_xc;
use trait_bounds_on_structs_and_enums_xc::{Bar, Foo, Trait};
fn main() {
let foo = Foo {
//~^ ERROR E0277
x: 3
};
let bar: Bar<f64> = return;
//~^ ERROR E0277
let _ = bar;
}