1 // compile-flags: -Zunstable-options --crate-type rlib
3 // error-pattern: the linking modifiers `+bundle` and `+whole-archive` are not compatible with each other when generating rlibs
5 #![feature(native_link_modifiers)]
6 #![feature(native_link_modifiers_bundle)]
7 #![feature(native_link_modifiers_whole_archive)]
9 #[link(name = "mylib", kind = "static", modifiers = "+bundle,+whole-archive")]