summary refs log tree commit diff
path: root/src/test/ui/traits/trait-bounds-on-structs-and-enums-xc.rs
blob: 901a2c4391f6dc88029307af4faa2fbf6c981773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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 explode(x: Foo<usize>) {}
//~^ ERROR E0277

fn kaboom(y: Bar<f32>) {}
//~^ ERROR E0277

fn main() {
}