rust/tests/ui/traits/bound/on-structs-and-enums-xc.rs

15 lines
234 B
Rust
Raw Normal View History

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 explode(x: Foo<usize>) {}
//~^ ERROR E0277
fn kaboom(y: Bar<f32>) {}
//~^ ERROR E0277
fn main() {
}