summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/bound/on-structs-and-enums-xc1.rs
blob: 8156868e048d94285523bcf81e65df25e04db978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 {
    //~^ ERROR E0277
        x: 3
    };
    let bar: Bar<f64> = return;
    //~^ ERROR E0277
    let _ = bar;
}