-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Macro error inside of file that gets included with include! yields terrible error #37719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related (maybe duplicate of?) to #37663, I think. |
I don't believe that this problem is restricted to macro_rules! noop {
($e:expr) => {$e}
}
fn main() {
noop!({
// ... imagine lots of code here ...
try!(0); // Oops!
// ... imagine lots of code here ...
})
} ...yields the following error:
[more type errors with the same span elided] |
I get the exact same error, when just trying to compile this;
Using version 1.15.1 stable channel. |
CC #38771. |
Current output for the original repro case:
Current output for #37719 (comment) (note the repetition):
Current output for #37719 (comment):
|
a.rs:
b.rs:
Compiling a.rs yields:
The text was updated successfully, but these errors were encountered: