Files
rust/tests/ui/parser/extern-abi-syntactic.rs

18 lines
404 B
Rust
Raw Normal View History

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