summary refs log tree commit diff
path: root/src/test/ui/resolve/issue-3907.rs
blob: a76c3134c0ca37108c815e303e06cf39111d21a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// aux-build:issue_3907.rs
extern crate issue_3907;

type Foo = 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();
}