rust/compiler/rustc_ast_lowering
Dylan DPC d554385bbf
Rollup merge of #83935 - SNCPlay42:param-default-impl-trait, r=varkor
forbid `impl Trait` in generic param defaults

Fixes #83929

Forbid using `impl Trait` in the default types of generic parameters, e.g. `struct Foo<T = impl Trait>`. I assume this was never supposed to be allowed - it seems no UI test used it.

Note that using `impl Trait` in this position did not hit a feature gate error; however, this *shouldn't* be a breaking change as any attempt to use it should have hit the ICE in #83929 and/or failed to provide a defining use of the `impl Trait`.
2021-04-07 13:07:15 +02:00
..
src Rollup merge of #83935 - SNCPlay42:param-default-impl-trait, r=varkor 2021-04-07 13:07:15 +02:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00