Skip to content

Commit

Permalink
This fails the build
Browse files Browse the repository at this point in the history
  • Loading branch information
herquan committed May 19, 2022
1 parent af5a462 commit 7679bab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test_hygiene/misc.rs
Expand Up @@ -33,3 +33,13 @@ fn intern(py: crate::Python<'_>) {
let _foo = crate::intern!(py, "foo");
let _bar = crate::intern!(py, stringify!(bar));
}

#[allow(dead_code)]
fn append_to_inittab(py: crate::Python<'_>) {
#[crate::pymodule]
#[pyo3(crate = "crate")]
fn my_module(_: crate::Python<'_>, _: &crate::types::PyModule) -> crate::PyResult<()> {
::std::result::Result::Ok(())
}
crate::append_to_inittab!(my_module);
}

0 comments on commit 7679bab

Please sign in to comment.