rust/src/test/ui/structs/struct-path-alias-bounds.rs
2018-12-25 21:08:33 -07:00

11 lines
205 B
Rust

// issue #36286
struct S<T: Clone> { a: T }
struct NoClone;
type A = S<NoClone>;
fn main() {
let s = A { a: NoClone };
//~^ ERROR the trait bound `NoClone: std::clone::Clone` is not satisfied
}