Ali MJ Al-Nasrawy
d69cdb2ceb
Rollup merge of #116865 - estebank:issue-46969, r=compiler-errors
Suggest constraining assoc types in more cases
Fix #46969.
```
error[E0308]: mismatched types
--> $DIR/suggest-contraining-assoc-type-because-of-assoc-const.rs:12:21
|
LL | const N: C::M = 4u8;
| ^^^ expected associated type, found `u8`
|
= note: expected associated type `<C as O>::M`
found type `u8`
help: consider constraining the associated type `<C as O>::M` to `u8`
|
LL | impl<C: O<M = u8>> U<C> for u16 {
| ++++++++
```
2023-10-18 14:24:51 +03:00
..
2023-09-25 14:38:27 +00:00
2023-10-16 15:38:08 -07:00
2023-10-08 20:17:53 -07:00
2023-10-15 13:23:55 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-17 04:41:20 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-17 04:41:20 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-15 13:23:55 +00:00
2023-10-16 15:38:08 -07:00
2023-10-18 03:55:36 +00:00
2023-10-16 15:38:08 -07:00
2023-10-18 07:45:56 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-16 06:26:20 +02:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-08 20:17:53 -07:00
2023-10-08 20:17:53 -07:00
2023-10-01 05:56:47 +00:00
2023-10-17 17:33:55 +00:00
2023-10-11 10:46:55 +11:00
2023-10-18 05:51:40 +00:00
2023-10-13 00:09:30 +00:00
2023-10-06 15:46:11 +00:00
2023-10-17 23:50:13 +00:00
2023-10-17 19:53:51 -04:00
2023-07-29 08:47:21 +08:00
2023-10-18 14:24:50 +03:00
2023-10-14 07:29:08 +00:00
2023-10-08 20:17:53 -07:00
2023-10-10 09:39:47 +08:00
2023-10-13 08:59:36 +00:00
2023-10-17 19:53:51 -04:00
2023-10-17 19:53:51 -04:00
2023-10-15 21:29:07 +02:00
2023-10-13 08:59:36 +00:00
2023-10-17 19:53:51 -04:00
2023-10-07 10:29:37 +02:00
2023-10-15 13:23:55 +00:00
2023-10-08 20:17:53 -07:00
2023-10-17 19:53:51 -04:00
2023-10-08 20:17:53 -07:00
2023-10-13 08:59:36 +00:00
2023-10-08 20:17:53 -07:00
2023-10-13 08:59:36 +00:00
2023-10-13 08:59:36 +00:00
2023-10-08 20:17:53 -07:00
2023-10-17 19:53:51 -04:00
2023-10-16 12:01:24 -07:00
2023-10-16 19:50:29 -07:00
2023-10-08 20:17:53 -07:00
2023-10-16 08:17:23 +11:00
2023-10-17 19:07:22 +02:00
2023-09-13 17:35:44 +00:00
2023-10-06 11:25:32 +11:00
2023-10-13 08:59:36 +00:00
2023-10-17 16:26:37 +11:00
2023-10-16 12:01:24 -07:00