rust/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs
Léo Lanteri Thauvin bfe5189904 Revert "Stabilize #![feature(target_feature_11)]"
This reverts commit b379d216ee.
2023-03-02 13:41:17 +01:00

13 lines
226 B
Rust

// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
// only-x86_64
#![feature(target_feature_11)]
#[target_feature(enable = "sse2")]
fn foo() {}
fn main() {
let foo: fn() = foo; //~ ERROR mismatched types
}