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 18:12:53 +00: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;