2016-09-15 00:51:46 +03:00
|
|
|
// issue #36286
|
|
|
|
|
|
|
|
|
|
struct S<T: Clone> { a: T }
|
|
|
|
|
|
|
|
|
|
struct NoClone;
|
|
|
|
|
type A = S<NoClone>;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let s = A { a: NoClone };
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR the trait bound `NoClone: Clone` is not satisfied
|
2016-08-15 13:58:28 +02:00
|
|
|
}
|