rust/tests/rustdoc/force-target-feature.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
222 B
Rust
Raw Normal View History

2018-04-12 13:12:53 -05:00
// 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;