summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-3907.rs
blob: 6211de4271782ebb7491172dd6207a950a63d128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// aux-build:issue-3907.rs

extern crate issue_3907;

type Foo = dyn issue_3907::Foo;

struct S {
    name: isize
}

impl Foo for S { //~ ERROR expected trait, found type alias `Foo`
    fn bar() { }
}

fn main() {
    let s = S {
        name: 0
    };
    s.bar();
}