Skip to content

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 18, 2024

Fixes #372.

dtolnay added 3 commits May 18, 2024 04:32
Currently failing:

    error: unexpected token: `b`
       --> tests/test_ensure.rs:138:44
        |
    138 |     let test = || Ok(ensure!(a <= b || a - b <= 10));
        |                                            ^
        |
       ::: src/ensure.rs:319:117
        |
    319 |     (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $ident:tt $colons:tt $larrow:tt $lit:literal $($dup:tt)*) . $i:ident :: <- $($rest:tt)*) => {
        |                                                                                                                     ------------ while parsing argument for this `literal` macro fragment
@dtolnay dtolnay merged commit 0a1b405 into master May 18, 2024
@dtolnay dtolnay deleted the minusneg branch May 18, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot compile when using ensure!

1 participant