rust/compiler
Dylan DPC 5faf033f62
Rollup merge of #101676 - compiler-errors:rpitit-wf, r=lcnr
Check that the types in return position `impl Trait` in traits are well-formed

This effectively duplicates `check_associated_type_bounds`, but that shouldn't be for long, since we're going to remove it once we refactor RPITITs into regular associated items.

Fixes #101663

---

We don't check

```rust
trait Foo {
  fn bar() -> impl ?Sized;
}
```

currently, but that's for a different reason, which is that we don't currently check that a trait function's return type is sized (i.e. `fn bar() -> [u8]` also works in a trait).
2022-09-12 15:21:33 +05:30
..
2022-09-11 14:04:18 +08:00
2022-09-09 01:31:46 +00:00
2022-09-09 01:31:46 +00:00
2022-09-09 01:31:46 +00:00
2022-09-08 20:55:55 -04:00
2022-09-08 20:55:55 -04:00
2022-09-08 20:55:55 -04:00