2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:issue-49482-macro-def.rs
|
|
|
|
// aux-build:issue-49482-reexport.rs
|
2018-08-26 07:13:47 -05:00
|
|
|
// 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();
|
|
|
|
}
|