2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-04-18 00:12:20 -05:00
|
|
|
trait U {}
|
2015-02-12 09:29:52 -06:00
|
|
|
trait T<X: U> { fn get(self) -> X; }
|
2014-08-11 19:12:01 -05:00
|
|
|
|
2015-04-18 00:12:20 -05:00
|
|
|
trait S2<Y: U> {
|
2019-05-28 13:47:21 -05:00
|
|
|
fn m(x: Box<dyn T<Y>+'static>) {}
|
2014-08-11 19:12:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct St<X: U> {
|
2019-05-28 13:47:21 -05:00
|
|
|
f: Box<dyn T<X>+'static>,
|
2014-08-11 19:12:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<X: U> St<X> {
|
|
|
|
fn blah() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|