-
Notifications
You must be signed in to change notification settings - Fork 836
Closed
Milestone
Description
Nom defines a dbg
macro, which unfortunately breaks the same macro from std
(even without adding a use
for it, it seems the namespaces aren't working as expected).
Minimal code to reproduce (nom 5.0, rustc 1.37):
#[macro_use]
extern crate nom;
fn test() {
let a = 1;
dbg!(&a);
}
fails with error:
error: unexpected end of macro invocation
--> tests/nom.rs:7:12
|
7 | dbg!(&a);
| ^ missing tokens in macro arguments
Suggestion: rename dbg
Workaround: replace line with ::std::dbg!(&a)
unageek
Metadata
Metadata
Assignees
Labels
No labels