rust/tests/ui/resolve/issue-3907.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
269 B
Rust
Raw Normal View History

// aux-build:issue-3907.rs
extern crate issue_3907;
2019-05-28 13:46:13 -05:00
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();
}