diff --git a/README.md b/README.md index f56facd0..49579d10 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ features = ["extension-module"] **`src/lib.rs`** ```rust -#![feature(proc_macro)] +#![feature(proc_macro, specialization)] extern crate pyo3; use pyo3::{py, PyResult, Python, PyModule}; diff --git a/guide/src/module.md b/guide/src/module.md index 94bd2eeb..6b3e537c 100644 --- a/guide/src/module.md +++ b/guide/src/module.md @@ -4,6 +4,7 @@ Python module generation is powered by unstable [Procedural Macros](https://doc. ```rust #![feature(proc_macro)] + extern crate pyo3; # fn main() {} ``` diff --git a/guide/src/overview.md b/guide/src/overview.md index d7d66770..62196a78 100644 --- a/guide/src/overview.md +++ b/guide/src/overview.md @@ -70,7 +70,7 @@ features = ["extension-module"] **`src/lib.rs`** ```rust -#![feature(proc_macro)] +#![feature(proc_macro, specialization)] extern crate pyo3; use pyo3::{py, PyResult, Python, PyModule}; diff --git a/src/lib.rs b/src/lib.rs index aaa392bc..fa0d6976 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,7 +78,7 @@ //! # Example //! //! ```rust -//! #![feature(proc_macro)] +//! #![feature(proc_macro, specialization)] //! //! extern crate pyo3; //! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString};