Skip to content

matches_pattern/pat generates error: cannot find macro matches_pattern_internal in this scope #86

@Aetf

Description

@Aetf

They were working fine in the 0.3 release, but are broken in 0.4

To reproduce:

#[cfg(test)]
mod tests {
    use googletest::{expect_that, google_test, Result, pat, matches_pattern};

    #[google_test]
    fn this_runs_twice() -> Result<()> {
        expect_that!(42, pat!(42));
        Ok(())
    }
}

With a minimal Cargo.toml

[package]
name = "repro"
version = "0.1.0"
edition = "2021"

[dev-dependencies]
googletest = "0.4.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions