2019-01-08 17:50:51 -06:00
|
|
|
// Test associated types are, until #8995 is implemented, forbidden in inherent impls.
|
2015-01-07 20:07:15 -06:00
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
2019-01-08 17:50:51 -06:00
|
|
|
type Bar = isize; //~ERROR associated types are not yet supported in inherent impls (see #8995)
|
2015-01-07 20:07:15 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|