Skip to content

Commit

Permalink
test(resolve): update_resolution for remove single import
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi committed Jun 20, 2023
1 parent 629b509 commit 09d4a82
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/resolve/auxiliary/issue-112831-aux.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]

extern crate proc_macro;

struct Zeroable;

#[proc_macro_derive(Zeroable)]
pub fn derive_zeroable(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
proc_macro::TokenStream::default()
}
20 changes: 20 additions & 0 deletions tests/ui/resolve/issue-112831.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// check-pass
// aux-build:issue-112831-aux.rs

mod zeroable {
pub trait Zeroable {}
}

use zeroable::*;

mod pod {
use super::*;
pub trait Pod: Zeroable {}
}

use pod::*;

extern crate issue_112831_aux;
use issue_112831_aux::Zeroable;

fn main() {}

0 comments on commit 09d4a82

Please sign in to comment.