summary refs log tree commit diff
path: root/src/test/compile-fail/staticness-mismatch.rs
blob: 51c7a819860330aea0518e0c9af3eb8050affabc (plain)
1
2
3
4
5
6
7
8
9
10

trait foo {
    static fn bar();
}

impl int: foo {
    fn bar() {} //~ ERROR self type does not match the trait method's
}

fn main() {}