diff options
author | David Tolnay <dtolnay@gmail.com> | 2018-09-06 08:58:10 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2018-09-06 08:58:10 -0700 |
commit | a1c98070018eaa7066c6834e45c8a3264bcf396a (patch) | |
tree | 551e79aeb97c7969c3ddd27a4f5a25d1469cf7b1 /src/generics.rs | |
parent | 8e6096aebe1f936eeaed41ce49b0b6a70646e8bd (diff) | |
download | syn-a1c98070018eaa7066c6834e45c8a3264bcf396a.tar.gz |
Make doc examples compatible with stable
Diffstat (limited to 'src/generics.rs')
-rw-r--r-- | src/generics.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/generics.rs b/src/generics.rs index c63cb690..51c60802 100644 --- a/src/generics.rs +++ b/src/generics.rs @@ -301,12 +301,13 @@ impl Generics { /// for that type. /// /// ``` + /// # #[macro_use] + /// # extern crate quote; + /// # /// # extern crate proc_macro2; /// # extern crate syn; - /// # extern crate quote; /// # /// # use proc_macro2::{Span, Ident}; - /// # use quote::quote; /// # /// # fn main() { /// # let generics: syn::Generics = Default::default(); |