2019-03-12 00:49:17 +00:00
|
|
|
//@ aux-build:issue-3907.rs
|
|
|
|
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate issue_3907;
|
2013-08-12 20:18:47 -07:00
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
type Foo = dyn issue_3907::Foo;
|
2013-08-12 20:18:47 -07:00
|
|
|
|
|
|
|
struct S {
|
2015-01-08 21:54:35 +11:00
|
|
|
name: isize
|
2013-08-12 20:18:47 -07:00
|
|
|
}
|
|
|
|
|
2016-12-01 01:35:25 +03:00
|
|
|
impl Foo for S { //~ ERROR expected trait, found type alias `Foo`
|
2013-08-12 20:18:47 -07:00
|
|
|
fn bar() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let s = S {
|
|
|
|
name: 0
|
|
|
|
};
|
|
|
|
s.bar();
|
|
|
|
}
|