rust/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs

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

13 lines
226 B
Rust
Raw Normal View History

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