]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/force-target-feature.rs
Rollup merge of #100353 - theli-ua:master, r=joshtriplett
[rust.git] / src / test / rustdoc / force-target-feature.rs
1 // only-x86_64
2 // compile-flags:--test -C target-feature=+avx
3 // should-fail
4
5 /// (written on a spider's web) Some Struct
6 ///
7 /// ```
8 /// panic!("oh no");
9 /// ```
10 #[doc(cfg(target_feature = "avx"))]
11 pub struct SomeStruct;