test(resolve): update_resolution for remove single import
This commit is contained in:
parent
629b50928c
commit
09d4a823d5
13
tests/ui/resolve/auxiliary/issue-112831-aux.rs
Normal file
13
tests/ui/resolve/auxiliary/issue-112831-aux.rs
Normal file
@ -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
tests/ui/resolve/issue-112831.rs
Normal file
20
tests/ui/resolve/issue-112831.rs
Normal file
@ -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() {}
|
Loading…
Reference in New Issue
Block a user