rust/tests/ui/parser/extern-abi-syntactic.rs
2025-04-03 21:41:58 +00:00

18 lines
404 B
Rust

//@ check-pass
// Check that from the grammar's point of view,
// the specific set of ABIs is not part of it.
fn main() {}
#[cfg(false)]
extern "some_abi_that_we_are_sure_does_not_exist_semantically" fn foo() {}
#[cfg(false)]
extern "some_abi_that_we_are_sure_does_not_exist_semantically" {
fn foo();
}
#[cfg(false)]
type T = extern "some_abi_that_we_are_sure_does_not_exist_semantically" fn();