You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally all macros (procedural as well as macro_rules) designed to be used
by other people should refer to every single thing in their expanded code
through an absolute path, such as std::result::Result.
// empty module has nothing and be used to redefine symbolsmod empty {}// redefine the prelude `::std`use empty as std;// redefine the dependency `::prometheus_client`use empty as prometheus_client;// redefine the prelude `::core::result::Result`.typeResult = ();enumTResult{Ok,Err,}// redefine the prelude `::core::result::Result::Ok/Err`.useTResult::Ok;useTResult::Err;#[derive(Debug,Clone,PartialEq,Eq,Hash,::prometheus_client::encoding::EncodeLabelSet)]structLableSet{a:String,b:LabelEnum,}#[derive(Debug,Clone,Copy,PartialEq,Eq,Hash,::prometheus_client::encoding::EncodeLabelValue)]enumLabelEnum{A,B,}fnmain(){}
The text was updated successfully, but these errors were encountered:
The following code is unable to compile, this issue was found while testing my own project.
According to proc-macro-workshop:
The text was updated successfully, but these errors were encountered: