Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
rfc-2627-raw-dylib
/
link-ordinal-and-name.rs
blob: 42685cad9482bb125fe95444caa043c0c151d854 [
file
] [
log
] [
blame
]
#![
feature
(
raw_dylib
)]
//~^ WARN the feature `raw_dylib` is incomplete
#[
link
(
name
=
"foo"
)]
extern
"C"
{
#[
link_name
=
"foo"
]
#[
link_ordinal
(
42
)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
fn
foo
();
}
fn
main
()
{}