rust/tests/ui/extern-flag/no-force-extern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
452 B
Rust
Raw Permalink Normal View History

2023-03-14 03:55:43 +00:00
//@ aux-crate:panic_handler=panic_handler.rs
//@ ignore-cross-compile (needs dylibs and compiletest doesn't have a more specific header)
// compile_flags: -Zunstable-options --crate-type dylib
//@ dont-check-compiler-stderr
//@ edition: 2018
#![no_std]
fn foo() {} //~ ERROR `main` function not found in crate `no_force_extern`
//~? ERROR `#[panic_handler]` function required, but not found
//~? ERROR unwinding panics are not supported without std