| // Regression test for <https://github.com/rust-lang/rust/issues/101129>. |
| #![feature(doc_auto_cfg)] |
| // @has foo/struct.S.html |
| // @has - '//*[@id="impl-MyTrait1-for-S"]//*[@class="stab portability"]' \ |
| // 'Available on non-crate feature coolstuff only.' |
| #[cfg(not(feature = "coolstuff"))] |
| #[cfg(not(feature = "coolstuff"))] |
| use crate::{S, MyTrait2}; |
| // This impl should also have the `not(feature = "coolstuff")`. |
| // @has - '//*[@id="impl-MyTrait2-for-S"]//*[@class="stab portability"]' \ |
| // 'Available on non-crate feature coolstuff only.' |