summaryrefslogtreecommitdiffstats
path: root/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs
blob: 1d0768d99cffd9284c08ef03fd1b7215c4617a29 (plain)
1
2
3
4
5
6
7
// 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() { }