]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-path-alias-bounds.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / structs / struct-path-alias-bounds.rs
1 // issue #36286
2
3 struct S<T: Clone> { a: T }
4
5 struct NoClone;
6 type A = S<NoClone>;
7
8 fn main() {
9     let s = A { a: NoClone };
10     //~^ ERROR the trait bound `NoClone: Clone` is not satisfied
11 }