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