Yuki Okushi
5e68c60406
Rollup merge of #82516 - PoignardAzur:inherent-impl-ty, r=oli-obk
...
Add incomplete feature gate for inherent associate types.
Mentored by ``````@oli-obk``````
So far the only change is that instead of giving an automatic error, the following code compiles:
```rust
struct Foo;
impl Foo {
type Bar = isize;
}
```
The backend work to make it actually usable isn't there yet. In particular, this:
```rust
let x : Foo::Bar;
```
will give you:
```sh
error[E0223]: ambiguous associated type
--> /$RUSTC_DIR/src/test/ui/assoc-inherent.rs:15:13
|
LL | let x : Foo::Bar;
| ^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Bar`
```
2021-03-02 21:23:15 +09:00
..
2020-09-15 14:23:20 +08:00
2021-01-30 15:57:46 -08:00
2021-01-30 15:57:46 -08:00
2021-01-13 07:49:16 -05:00
2021-01-24 00:17:40 -05:00
2021-01-24 00:17:40 -05:00
2021-01-24 00:17:40 -05:00
2020-09-20 13:48:16 +00:00
2020-09-20 13:48:16 +00:00
2021-01-30 15:57:46 -08:00
2021-01-30 15:57:46 -08:00
2020-09-15 18:10:41 +02:00
2021-01-13 07:49:16 -05:00
2021-02-17 19:26:38 +09:00
2021-02-17 19:26:38 +09:00
2020-11-23 14:14:06 -08:00
2021-01-24 20:31:42 +01:00
2020-12-04 22:17:06 +09:00
2020-09-01 23:05:56 +10:00
2021-01-30 15:57:46 -08:00
2020-10-06 11:19:32 +01:00
2020-10-25 12:20:25 +01:00
2021-01-30 15:57:46 -08:00
2020-11-23 14:14:06 -08:00
2021-01-15 16:50:48 +11:00
2020-12-06 20:30:07 +00:00
2020-10-10 18:02:53 +09:00
2020-09-01 18:38:14 +01:00
2021-01-07 20:20:58 +09:00
2021-01-13 07:49:16 -05:00
2021-01-13 07:49:16 -05:00
2021-01-13 07:49:16 -05:00
2021-01-13 07:49:16 -05:00
2021-02-03 11:51:42 -05:00
2021-01-01 16:59:12 +00:00
2021-02-01 18:22:13 +01:00
2021-02-11 16:26:07 +01:00
2021-02-17 18:08:30 +01:00
2021-02-15 19:16:39 +01:00
2021-02-11 16:26:07 +01:00
2021-02-09 14:13:40 +01:00
2021-02-18 10:03:01 +01:00
2020-11-23 14:14:06 -08:00
2020-11-23 14:14:06 -08:00
2020-11-27 19:07:14 -08:00
2021-01-30 15:57:46 -08:00
2020-09-07 18:48:22 -07:00
2021-01-13 07:49:16 -05:00
2021-01-13 07:49:45 -05:00
2021-01-30 15:57:46 -08:00
2020-10-15 20:22:16 -04:00
2020-10-15 20:22:16 -04:00
2020-10-15 20:22:16 -04:00
2020-10-15 20:22:16 -04:00
2020-10-15 20:22:16 -04:00
2020-10-06 11:22:24 -07:00
2021-01-13 07:49:16 -05:00
2020-12-26 18:24:10 +01:00
2020-11-16 09:30:29 -06:00
2021-01-30 15:57:46 -08:00
2020-09-08 21:07:52 +02:00
2020-09-21 21:04:56 +02:00
2021-01-30 09:48:37 -05:00
2021-02-12 00:02:52 -08:00
2020-08-31 20:14:37 +02:00
2020-08-31 20:10:57 +02:00
2020-12-26 18:24:10 +01:00
2020-09-01 08:34:17 -04:00
2020-09-08 21:32:03 +02:00
2020-09-30 18:10:17 +01:00
2020-09-30 18:10:17 +01:00
2020-10-01 20:41:57 +02:00
2020-10-08 23:32:20 +01:00
2020-10-08 23:32:20 +01:00
2020-12-31 09:07:51 +00:00
2021-02-02 13:04:31 +00:00