2016-04-26 12:51:14 -05:00
|
|
|
#![crate_name="a"]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
pub trait i<T>
|
|
|
|
{
|
|
|
|
fn dummy(&self, t: T) -> T { panic!() }
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn f<T>() -> Box<i<T>+'static> {
|
|
|
|
impl<T> i<T> for () { }
|
|
|
|
|
2022-07-06 21:36:10 -05:00
|
|
|
Box::new(()) as Box<i<T>+'static>
|
2015-03-18 16:05:24 -05:00
|
|
|
}
|