Add feature gate for inherent associate types.

This commit is contained in:
Olivier FAURE
2021-02-25 14:09:52 +01:00
parent 89d32eb1ea
commit 4f4e15d5eb
12 changed files with 89 additions and 45 deletions

View File

@@ -1,15 +0,0 @@
Inherent associated types were part of [RFC 195] but are not yet implemented.
See [the tracking issue][iss8995] for the status of this implementation.
Erroneous code example:
```compile_fail,E0202
struct Foo;
impl Foo {
type Bar = isize; // error!
}
```
[RFC 195]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
[iss8995]: https://github.com/rust-lang/rust/issues/8995