2018-08-26 07:13:47 -05:00
|
|
|
// aux-build:issue_49482_macro_def.rs
|
|
|
|
// aux-build:issue_49482_reexport.rs
|
|
|
|
// revisions: rpass1
|
|
|
|
|
|
|
|
extern crate issue_49482_reexport;
|
2018-08-25 17:53:48 -05:00
|
|
|
|
|
|
|
pub trait KvStorage
|
|
|
|
{
|
|
|
|
fn get(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<K> KvStorage for Box<K>
|
|
|
|
where
|
|
|
|
K: KvStorage + ?Sized,
|
|
|
|
{
|
|
|
|
fn get(&self) {
|
|
|
|
(**self).get()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl KvStorage for u32 {
|
|
|
|
fn get(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2018-08-26 07:13:47 -05:00
|
|
|
/* force issue_49482_reexport to be loaded */
|
|
|
|
issue_49482_reexport::foo();
|
|
|
|
|
2018-08-25 17:53:48 -05:00
|
|
|
Box::new(2).get();
|
|
|
|
}
|