2019-03-12 00:49:17 +00:00
|
|
|
//@ aux-build:issue-49482-macro-def.rs
|
|
|
|
//@ aux-build:issue-49482-reexport.rs
|
2018-08-26 12:13:47 +00:00
|
|
|
//@ revisions: rpass1
|
|
|
|
|
|
|
|
extern crate issue_49482_reexport;
|
2018-08-25 22:53:48 +00: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 12:13:47 +00:00
|
|
|
/* force issue_49482_reexport to be loaded */
|
|
|
|
issue_49482_reexport::foo();
|
|
|
|
|
2018-08-25 22:53:48 +00:00
|
|
|
Box::new(2).get();
|
|
|
|
}
|