Skip to content

Commit 09d4a82

Browse files
committed
test(resolve): update_resolution for remove single import
1 parent 629b509 commit 09d4a82

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// force-host
2+
// no-prefer-dynamic
3+
4+
#![crate_type = "proc-macro"]
5+
6+
extern crate proc_macro;
7+
8+
struct Zeroable;
9+
10+
#[proc_macro_derive(Zeroable)]
11+
pub fn derive_zeroable(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
12+
proc_macro::TokenStream::default()
13+
}

tests/ui/resolve/issue-112831.rs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// check-pass
2+
// aux-build:issue-112831-aux.rs
3+
4+
mod zeroable {
5+
pub trait Zeroable {}
6+
}
7+
8+
use zeroable::*;
9+
10+
mod pod {
11+
use super::*;
12+
pub trait Pod: Zeroable {}
13+
}
14+
15+
use pod::*;
16+
17+
extern crate issue_112831_aux;
18+
use issue_112831_aux::Zeroable;
19+
20+
fn main() {}

0 commit comments

Comments
 (0)