]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/bound/on-structs-and-enums-rpass.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / bound / on-structs-and-enums-rpass.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 // pretty-expanded FIXME #23616
5
6 trait U {}
7 trait T<X: U> { fn get(self) -> X; }
8
9 trait S2<Y: U> {
10 fn m(x: Box<dyn T<Y>+'static>) {}
11 }
12
13 struct St<X: U> {
14 f: Box<dyn T<X>+'static>,
15 }
16
17 impl<X: U> St<X> {
18 fn blah() {}
19 }
20
21 fn main() {}