]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/issue-49482.rs
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / incremental / issue-49482.rs
1 // aux-build:issue-49482-macro-def.rs
2 // aux-build:issue-49482-reexport.rs
3 // revisions: rpass1
4
5 extern crate issue_49482_reexport;
6
7 pub trait KvStorage
8 {
9     fn get(&self);
10 }
11
12 impl<K> KvStorage for Box<K>
13 where
14     K: KvStorage + ?Sized,
15 {
16     fn get(&self) {
17         (**self).get()
18     }
19 }
20
21 impl KvStorage for u32 {
22     fn get(&self) {}
23 }
24
25 fn main() {
26     /* force issue_49482_reexport to be loaded */
27     issue_49482_reexport::foo();
28
29     Box::new(2).get();
30 }