rust/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs
2023-02-01 08:53:02 +01:00

11 lines
194 B
Rust

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