summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-7575.rs
blob: ac69f2b1c80b64afdb5c917bad5d9a17718f6a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass

trait Foo {
    fn new() -> bool { false }
    fn dummy(&self) { }
}

trait Bar {
    fn new(&self) -> bool { true }
}

impl Bar for isize {}
impl Foo for isize {}

fn main() {
    assert!(1.new());
}