mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
12 lines
193 B
Rust
12 lines
193 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: Clone` is not satisfied
|
|
}
|