summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/force-target-feature.rs
blob: b6c10e8341b439a2b90ddd4b42e32e976eb5e3d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// only-x86_64
// compile-flags:--test -C target-feature=+avx
// should-fail

/// (written on a spider's web) Some Struct
///
/// ```
/// panic!("oh no");
/// ```
#[doc(cfg(target_feature = "avx"))]
pub struct SomeStruct;