about summary refs log tree commit diff
path: root/tests/ui/abi/abi-typo-unstable.rs
blob: 75366217fa26f3da31a12b738594b95dfd006972 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ revisions: feature_disabled feature_enabled
#![cfg_attr(feature_enabled, feature(unboxed_closures))]

// rust-call is unstable and not enabled, so it should not be suggested as a fix
extern "rust-cull" fn rust_call(_: ()) {}
//~^ ERROR invalid ABI
//[feature_enabled]~| HELP there's a similarly named valid ABI

fn main() {
    rust_call(());
}