summaryrefslogtreecommitdiffstats
path: root/tests/ui/native-library-link-flags/link-arg-from-rs.rs
blob: 075e4d9e79e469b53346468fe0f3d2a0933917e4 (plain)
1
2
3
4
5
6
7
8
// link-arg is not supposed to be usable in #[link] attributes

// compile-flags:
// error-pattern: error[E0458]: unknown link kind `link-arg`, expected one of: static, dylib, framework, raw-dylib

#[link(kind = "link-arg")]
extern "C" {}
pub fn main() {}