1
Fork 0
rust/compiler/rustc_trait_selection/src
Matthias Krüger 379ef9bd36
Rollup merge of #121386 - oli-obk:no_higher_ranked_opaques, r=lcnr
test that we do not support higher-ranked regions in opaque type inference

We already do all the right checks in `check_opaque_type_parameter_valid`, and we have done so since at least 2 years.

I collected the tests from https://github.com/rust-lang/rust/pull/116935 and https://github.com/rust-lang/rust/pull/100503 and added some more

cc https://github.com/rust-lang/rust/issues/96146

r? `@lcnr`
2024-02-22 18:09:52 +01:00
..
solve Rollup merge of #120598 - compiler-errors:no-rigid-check, r=lcnr 2024-02-22 18:09:52 +01:00
traits Rollup merge of #121386 - oli-obk:no_higher_ranked_opaques, r=lcnr 2024-02-22 18:09:52 +01:00
errors.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
infer.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00
lib.rs Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
regions.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00