rust/tests/ui/extern/auxiliary/no-mangle-associated-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
215 B
Rust
Raw Normal View History

#![crate_type = "lib"]
struct Bar;
impl Bar {
#[no_mangle]
fn bar() -> u8 {
2
}
}
trait Foo {
fn baz() -> u8;
}
impl Foo for Bar {
#[no_mangle]
fn baz() -> u8 {
3
}
}