We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 629b509 commit 09d4a82Copy full SHA for 09d4a82
tests/ui/resolve/auxiliary/issue-112831-aux.rs
@@ -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
@@ -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 {}
14
15
+use pod::*;
16
17
+extern crate issue_112831_aux;
18
+use issue_112831_aux::Zeroable;
19
20
+fn main() {}
0 commit comments