We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f7fa12 commit 1bdb024Copy full SHA for 1bdb024
oracle_procmacro/src/lib.rs
@@ -71,7 +71,7 @@ pub fn derive_row_value(input: TokenStream) -> TokenStream {
71
let result = #ident {
72
#(#fields)*
73
};
74
- Ok(result)
+ ::std::result::Result::Ok(result)
75
}
76
77
tests/procmacro.rs
@@ -0,0 +1,16 @@
1
+use oracle::RowValue;
2
+
3
+#[test]
4
+fn procmacro_ok_shadow() {
5
+ #[allow(dead_code)]
6
+ enum AnotherResult<T, E> {
7
+ Ok(T),
8
+ Err(E),
9
+ }
10
11
+ #[allow(unused_imports)]
12
+ use AnotherResult::Ok;
13
14
+ #[derive(Debug, RowValue)]
15
+ struct Foo {}
16
+}
0 commit comments