blob: 0d5edc0cd734ef013ecaf2a6c00de049ca5c7c43 [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#[cfg(feature = "required_feature")]
#[no_mangle]
pub extern "C" fn foo() -> i32 {
42
}
#[cfg(not(feature = "required_feature"))]
const _: () = "this is a type error, because required_feature was unset";