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.

11 lines
194 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
#[target_feature(enable = "sse2")]
fn foo() {}
fn main() {
let foo: fn() = foo; //~ ERROR mismatched types
}