blob: 659b461f7593c50ac9f12411ae443e64cfe7fb3a [file] [log] [blame]
//@ run-pass
//@ aux-build:attr-on-trait.rs
extern crate attr_on_trait;
use attr_on_trait::foo;
trait Foo {
#[foo]
fn foo() {}
}
impl Foo for i32 {
fn foo(&self) {}
}
fn main() {
3i32.foo();
}