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