rust/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs
2023-01-11 09:32:08 +00:00

8 lines
304 B
Rust

// Mixing +bundle and +whole-archive is not allowed
// compile-flags: -l static:+bundle,+whole-archive=mylib -Zunstable-options --crate-type rlib
// build-fail
// error-pattern: the linking modifiers `+bundle` and `+whole-archive` are not compatible with each other when generating rlibs
fn main() { }