summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/const-generics
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/ui/const-generics/apit-with-const-param.rs (renamed from src/test/ui/const-generics/apit-with-const-param.rs)0
-rw-r--r--tests/ui/const-generics/arg-in-pat-1.rs (renamed from src/test/ui/const-generics/arg-in-pat-1.rs)0
-rw-r--r--tests/ui/const-generics/arg-in-pat-2.rs (renamed from src/test/ui/const-generics/arg-in-pat-2.rs)0
-rw-r--r--tests/ui/const-generics/arg-in-pat-3.rs (renamed from src/test/ui/const-generics/arg-in-pat-3.rs)0
-rw-r--r--tests/ui/const-generics/argument_order.rs (renamed from src/test/ui/const-generics/argument_order.rs)0
-rw-r--r--tests/ui/const-generics/argument_order.stderr (renamed from src/test/ui/const-generics/argument_order.stderr)0
-rw-r--r--tests/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs (renamed from src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs (renamed from src/test/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/alloc-types-impls-length-33.rs (renamed from src/test/ui/const-generics/array-impls/alloc-types-impls-length-33.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/core-traits-impls-length-32.rs (renamed from src/test/ui/const-generics/array-impls/core-traits-impls-length-32.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/core-traits-impls-length-33.rs (renamed from src/test/ui/const-generics/array-impls/core-traits-impls-length-33.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/into-iter-impls-length-32.rs (renamed from src/test/ui/const-generics/array-impls/into-iter-impls-length-32.rs)0
-rw-r--r--tests/ui/const-generics/array-impls/into-iter-impls-length-33.rs (renamed from src/test/ui/const-generics/array-impls/into-iter-impls-length-33.rs)0
-rw-r--r--tests/ui/const-generics/array-wrapper-struct-ctor.rs (renamed from src/test/ui/const-generics/array-wrapper-struct-ctor.rs)0
-rw-r--r--tests/ui/const-generics/assoc_const_eq_diagnostic.rs18
-rw-r--r--tests/ui/const-generics/assoc_const_eq_diagnostic.stderr33
-rw-r--r--tests/ui/const-generics/associated-type-bound-fail.rs (renamed from src/test/ui/const-generics/associated-type-bound-fail.rs)0
-rw-r--r--tests/ui/const-generics/associated-type-bound-fail.stderr (renamed from src/test/ui/const-generics/associated-type-bound-fail.stderr)0
-rw-r--r--tests/ui/const-generics/associated-type-bound.rs (renamed from src/test/ui/const-generics/associated-type-bound.rs)0
-rw-r--r--tests/ui/const-generics/auxiliary/const_generic_lib.rs (renamed from src/test/ui/const-generics/auxiliary/const_generic_lib.rs)0
-rw-r--r--tests/ui/const-generics/auxiliary/crayte.rs (renamed from src/test/ui/const-generics/auxiliary/crayte.rs)0
-rw-r--r--tests/ui/const-generics/auxiliary/generics_of_parent.rs (renamed from src/test/ui/const-generics/auxiliary/generics_of_parent.rs)0
-rw-r--r--tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs (renamed from src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs)0
-rw-r--r--tests/ui/const-generics/auxiliary/legacy-const-generics.rs (renamed from src/test/ui/const-generics/auxiliary/legacy-const-generics.rs)0
-rw-r--r--tests/ui/const-generics/backcompat/trait-resolution-breakage.rs (renamed from src/test/ui/const-generics/backcompat/trait-resolution-breakage.rs)0
-rw-r--r--tests/ui/const-generics/backcompat/unevaluated-consts.rs (renamed from src/test/ui/const-generics/backcompat/unevaluated-consts.rs)0
-rw-r--r--tests/ui/const-generics/bad-const-generic-exprs.rs (renamed from src/test/ui/const-generics/bad-const-generic-exprs.rs)0
-rw-r--r--tests/ui/const-generics/bad-const-generic-exprs.stderr (renamed from src/test/ui/const-generics/bad-const-generic-exprs.stderr)0
-rw-r--r--tests/ui/const-generics/broken-mir-1.rs (renamed from src/test/ui/const-generics/broken-mir-1.rs)0
-rw-r--r--tests/ui/const-generics/broken-mir-2.rs (renamed from src/test/ui/const-generics/broken-mir-2.rs)0
-rw-r--r--tests/ui/const-generics/cannot-infer-type-for-const-param.rs (renamed from src/test/ui/const-generics/cannot-infer-type-for-const-param.rs)0
-rw-r--r--tests/ui/const-generics/coerce_unsized_array.rs (renamed from src/test/ui/const-generics/coerce_unsized_array.rs)0
-rw-r--r--tests/ui/const-generics/concrete-const-as-fn-arg.rs (renamed from src/test/ui/const-generics/concrete-const-as-fn-arg.rs)0
-rw-r--r--tests/ui/const-generics/concrete-const-impl-method.rs (renamed from src/test/ui/const-generics/concrete-const-impl-method.rs)0
-rw-r--r--tests/ui/const-generics/condition-in-trait-const-arg.rs (renamed from src/test/ui/const-generics/condition-in-trait-const-arg.rs)0
-rw-r--r--tests/ui/const-generics/const-arg-in-const-arg.full.stderr (renamed from src/test/ui/const-generics/const-arg-in-const-arg.full.stderr)0
-rw-r--r--tests/ui/const-generics/const-arg-in-const-arg.min.stderr (renamed from src/test/ui/const-generics/const-arg-in-const-arg.min.stderr)0
-rw-r--r--tests/ui/const-generics/const-arg-in-const-arg.rs (renamed from src/test/ui/const-generics/const-arg-in-const-arg.rs)0
-rw-r--r--tests/ui/const-generics/const-arg-in-fn.rs (renamed from src/test/ui/const-generics/const-arg-in-fn.rs)0
-rw-r--r--tests/ui/const-generics/const-arg-type-arg-misordered.rs (renamed from src/test/ui/const-generics/const-arg-type-arg-misordered.rs)0
-rw-r--r--tests/ui/const-generics/const-arg-type-arg-misordered.stderr (renamed from src/test/ui/const-generics/const-arg-type-arg-misordered.stderr)0
-rw-r--r--tests/ui/const-generics/const-argument-cross-crate-mismatch.rs (renamed from src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs)0
-rw-r--r--tests/ui/const-generics/const-argument-cross-crate-mismatch.stderr (renamed from src/test/ui/const-generics/const-argument-cross-crate-mismatch.stderr)0
-rw-r--r--tests/ui/const-generics/const-argument-cross-crate.rs (renamed from src/test/ui/const-generics/const-argument-cross-crate.rs)0
-rw-r--r--tests/ui/const-generics/const-argument-if-length.full.stderr (renamed from src/test/ui/const-generics/const-argument-if-length.full.stderr)0
-rw-r--r--tests/ui/const-generics/const-argument-if-length.min.stderr (renamed from src/test/ui/const-generics/const-argument-if-length.min.stderr)0
-rw-r--r--tests/ui/const-generics/const-argument-if-length.rs (renamed from src/test/ui/const-generics/const-argument-if-length.rs)0
-rw-r--r--tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr (renamed from src/test/ui/const-generics/const-argument-non-static-lifetime.min.stderr)0
-rw-r--r--tests/ui/const-generics/const-argument-non-static-lifetime.rs (renamed from src/test/ui/const-generics/const-argument-non-static-lifetime.rs)0
-rw-r--r--tests/ui/const-generics/const-fn-with-const-param.rs (renamed from src/test/ui/const-generics/const-fn-with-const-param.rs)0
-rw-r--r--tests/ui/const-generics/const-generic-default-wont-borrowck.rs (renamed from src/test/ui/const-generics/const-generic-default-wont-borrowck.rs)0
-rw-r--r--tests/ui/const-generics/const-generic-default-wont-borrowck.stderr (renamed from src/test/ui/const-generics/const-generic-default-wont-borrowck.stderr)0
-rw-r--r--tests/ui/const-generics/const-generic-function.rs (renamed from src/test/ui/const-generics/const-generic-function.rs)0
-rw-r--r--tests/ui/const-generics/const-generic-function.stderr (renamed from src/test/ui/const-generics/const-generic-function.stderr)0
-rw-r--r--tests/ui/const-generics/const-generic-type_name.rs (renamed from src/test/ui/const-generics/const-generic-type_name.rs)0
-rw-r--r--tests/ui/const-generics/const-param-after-const-literal-arg.rs (renamed from src/test/ui/const-generics/const-param-after-const-literal-arg.rs)0
-rw-r--r--tests/ui/const-generics/const-param-before-other-params.rs (renamed from src/test/ui/const-generics/const-param-before-other-params.rs)0
-rw-r--r--tests/ui/const-generics/const-param-before-other-params.stderr (renamed from src/test/ui/const-generics/const-param-before-other-params.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-elided-lifetime.full.stderr (renamed from src/test/ui/const-generics/const-param-elided-lifetime.full.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-elided-lifetime.min.stderr (renamed from src/test/ui/const-generics/const-param-elided-lifetime.min.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-elided-lifetime.rs (renamed from src/test/ui/const-generics/const-param-elided-lifetime.rs)0
-rw-r--r--tests/ui/const-generics/const-param-in-async.rs (renamed from src/test/ui/const-generics/const-param-in-async.rs)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr (renamed from src/test/ui/const-generics/const-param-type-depends-on-const-param.full.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-const-param.min.stderr (renamed from src/test/ui/const-generics/const-param-type-depends-on-const-param.min.stderr)4
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-const-param.rs (renamed from src/test/ui/const-generics/const-param-type-depends-on-const-param.rs)4
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs (renamed from src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr (renamed from src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param.full.stderr (renamed from src/test/ui/const-generics/const-param-type-depends-on-type-param.full.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr (renamed from src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr)0
-rw-r--r--tests/ui/const-generics/const-param-type-depends-on-type-param.rs (renamed from src/test/ui/const-generics/const-param-type-depends-on-type-param.rs)0
-rw-r--r--tests/ui/const-generics/const-parameter-uppercase-lint.rs (renamed from src/test/ui/const-generics/const-parameter-uppercase-lint.rs)0
-rw-r--r--tests/ui/const-generics/const-parameter-uppercase-lint.stderr (renamed from src/test/ui/const-generics/const-parameter-uppercase-lint.stderr)0
-rw-r--r--tests/ui/const-generics/const_trait_fn-issue-88433.rs (renamed from src/test/ui/const-generics/const_trait_fn-issue-88433.rs)0
-rw-r--r--tests/ui/const-generics/core-types.rs (renamed from src/test/ui/const-generics/core-types.rs)0
-rw-r--r--tests/ui/const-generics/cross_crate_complex.rs (renamed from src/test/ui/const-generics/cross_crate_complex.rs)0
-rw-r--r--tests/ui/const-generics/defaults/auxiliary/const_defaulty.rs (renamed from src/test/ui/const-generics/defaults/auxiliary/const_defaulty.rs)0
-rw-r--r--tests/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs (renamed from src/test/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs)0
-rw-r--r--tests/ui/const-generics/defaults/complex-generic-default-expr.min.stderr (renamed from src/test/ui/const-generics/defaults/complex-generic-default-expr.min.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/complex-generic-default-expr.rs (renamed from src/test/ui/const-generics/defaults/complex-generic-default-expr.rs)0
-rw-r--r--tests/ui/const-generics/defaults/complex-unord-param.rs (renamed from src/test/ui/const-generics/defaults/complex-unord-param.rs)0
-rw-r--r--tests/ui/const-generics/defaults/const-default.rs (renamed from src/test/ui/const-generics/defaults/const-default.rs)0
-rw-r--r--tests/ui/const-generics/defaults/const-param-as-default-value.rs (renamed from src/test/ui/const-generics/defaults/const-param-as-default-value.rs)0
-rw-r--r--tests/ui/const-generics/defaults/const-param-in-ty-defaults.rs (renamed from src/test/ui/const-generics/defaults/const-param-in-ty-defaults.rs)0
-rw-r--r--tests/ui/const-generics/defaults/default-annotation.rs (renamed from src/test/ui/const-generics/defaults/default-annotation.rs)0
-rw-r--r--tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs (renamed from src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs)0
-rw-r--r--tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr (renamed from src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/default-on-impl.rs (renamed from src/test/ui/const-generics/defaults/default-on-impl.rs)0
-rw-r--r--tests/ui/const-generics/defaults/default-on-impl.stderr (renamed from src/test/ui/const-generics/defaults/default-on-impl.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/default-param-wf-concrete.rs (renamed from src/test/ui/const-generics/defaults/default-param-wf-concrete.rs)0
-rw-r--r--tests/ui/const-generics/defaults/default-param-wf-concrete.stderr (renamed from src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/doesnt_infer.rs (renamed from src/test/ui/const-generics/defaults/doesnt_infer.rs)0
-rw-r--r--tests/ui/const-generics/defaults/doesnt_infer.stderr (renamed from src/test/ui/const-generics/defaults/doesnt_infer.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/external.rs (renamed from src/test/ui/const-generics/defaults/external.rs)0
-rw-r--r--tests/ui/const-generics/defaults/forward-declared.rs (renamed from src/test/ui/const-generics/defaults/forward-declared.rs)0
-rw-r--r--tests/ui/const-generics/defaults/forward-declared.stderr (renamed from src/test/ui/const-generics/defaults/forward-declared.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default-concrete.rs (renamed from src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default-concrete.stderr (renamed from src/test/ui/const-generics/defaults/generic-expr-default-concrete.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs (renamed from src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr (renamed from src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default.rs (renamed from src/test/ui/const-generics/defaults/generic-expr-default.rs)0
-rw-r--r--tests/ui/const-generics/defaults/generic-expr-default.stderr (renamed from src/test/ui/const-generics/defaults/generic-expr-default.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/intermixed-lifetime.rs (renamed from src/test/ui/const-generics/defaults/intermixed-lifetime.rs)0
-rw-r--r--tests/ui/const-generics/defaults/intermixed-lifetime.stderr (renamed from src/test/ui/const-generics/defaults/intermixed-lifetime.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/mismatch.rs (renamed from src/test/ui/const-generics/defaults/mismatch.rs)0
-rw-r--r--tests/ui/const-generics/defaults/mismatch.stderr (renamed from src/test/ui/const-generics/defaults/mismatch.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs (renamed from src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs)0
-rw-r--r--tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr (renamed from src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs (renamed from src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs)0
-rw-r--r--tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr (renamed from src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/pretty-printing-ast.rs (renamed from src/test/ui/const-generics/defaults/pretty-printing-ast.rs)0
-rw-r--r--tests/ui/const-generics/defaults/pretty-printing-ast.stdout (renamed from src/test/ui/const-generics/defaults/pretty-printing-ast.stdout)0
-rw-r--r--tests/ui/const-generics/defaults/repr-c-issue-82792.rs (renamed from src/test/ui/const-generics/defaults/repr-c-issue-82792.rs)0
-rw-r--r--tests/ui/const-generics/defaults/rp_impl_trait.rs (renamed from src/test/ui/const-generics/defaults/rp_impl_trait.rs)0
-rw-r--r--tests/ui/const-generics/defaults/rp_impl_trait_fail.rs (renamed from src/test/ui/const-generics/defaults/rp_impl_trait_fail.rs)0
-rw-r--r--tests/ui/const-generics/defaults/rp_impl_trait_fail.stderr (renamed from src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/self-referential.rs (renamed from src/test/ui/const-generics/defaults/self-referential.rs)0
-rw-r--r--tests/ui/const-generics/defaults/self-referential.stderr (renamed from src/test/ui/const-generics/defaults/self-referential.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/simple-defaults.rs (renamed from src/test/ui/const-generics/defaults/simple-defaults.rs)0
-rw-r--r--tests/ui/const-generics/defaults/trait_object_lt_defaults.rs (renamed from src/test/ui/const-generics/defaults/trait_object_lt_defaults.rs)0
-rw-r--r--tests/ui/const-generics/defaults/trait_objects.rs (renamed from src/test/ui/const-generics/defaults/trait_objects.rs)0
-rw-r--r--tests/ui/const-generics/defaults/trait_objects_fail.rs (renamed from src/test/ui/const-generics/defaults/trait_objects_fail.rs)0
-rw-r--r--tests/ui/const-generics/defaults/trait_objects_fail.stderr (renamed from src/test/ui/const-generics/defaults/trait_objects_fail.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/type-default-const-param-name.rs (renamed from src/test/ui/const-generics/defaults/type-default-const-param-name.rs)0
-rw-r--r--tests/ui/const-generics/defaults/wfness.rs (renamed from src/test/ui/const-generics/defaults/wfness.rs)0
-rw-r--r--tests/ui/const-generics/defaults/wfness.stderr (renamed from src/test/ui/const-generics/defaults/wfness.stderr)0
-rw-r--r--tests/ui/const-generics/defaults/wrong-order.rs (renamed from src/test/ui/const-generics/defaults/wrong-order.rs)0
-rw-r--r--tests/ui/const-generics/defaults/wrong-order.stderr (renamed from src/test/ui/const-generics/defaults/wrong-order.stderr)0
-rw-r--r--tests/ui/const-generics/deref-into-array-generic.rs (renamed from src/test/ui/const-generics/deref-into-array-generic.rs)0
-rw-r--r--tests/ui/const-generics/different_generic_args.full.stderr (renamed from src/test/ui/const-generics/different_generic_args.full.stderr)0
-rw-r--r--tests/ui/const-generics/different_generic_args.min.stderr (renamed from src/test/ui/const-generics/different_generic_args.min.stderr)0
-rw-r--r--tests/ui/const-generics/different_generic_args.rs (renamed from src/test/ui/const-generics/different_generic_args.rs)0
-rw-r--r--tests/ui/const-generics/different_generic_args_array.rs (renamed from src/test/ui/const-generics/different_generic_args_array.rs)0
-rw-r--r--tests/ui/const-generics/different_generic_args_array.stderr (renamed from src/test/ui/const-generics/different_generic_args_array.stderr)0
-rw-r--r--tests/ui/const-generics/dont-evaluate-array-len-on-err-1.rs (renamed from src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs)0
-rw-r--r--tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr9
-rw-r--r--tests/ui/const-generics/dyn-supertraits.rs (renamed from src/test/ui/const-generics/dyn-supertraits.rs)0
-rw-r--r--tests/ui/const-generics/early/closing-args-token.rs (renamed from src/test/ui/const-generics/early/closing-args-token.rs)0
-rw-r--r--tests/ui/const-generics/early/closing-args-token.stderr (renamed from src/test/ui/const-generics/early/closing-args-token.stderr)0
-rw-r--r--tests/ui/const-generics/early/const-expression-parameter.rs (renamed from src/test/ui/const-generics/early/const-expression-parameter.rs)0
-rw-r--r--tests/ui/const-generics/early/const-expression-parameter.stderr (renamed from src/test/ui/const-generics/early/const-expression-parameter.stderr)0
-rw-r--r--tests/ui/const-generics/early/const-param-from-outer-fn.rs (renamed from src/test/ui/const-generics/early/const-param-from-outer-fn.rs)0
-rw-r--r--tests/ui/const-generics/early/const-param-from-outer-fn.stderr (renamed from src/test/ui/const-generics/early/const-param-from-outer-fn.stderr)0
-rw-r--r--tests/ui/const-generics/early/const-param-hygiene.rs (renamed from src/test/ui/const-generics/early/const-param-hygiene.rs)0
-rw-r--r--tests/ui/const-generics/early/const-param-shadowing.rs (renamed from src/test/ui/const-generics/early/const-param-shadowing.rs)0
-rw-r--r--tests/ui/const-generics/early/const-param-shadowing.stderr (renamed from src/test/ui/const-generics/early/const-param-shadowing.stderr)0
-rw-r--r--tests/ui/const-generics/early/invalid-const-arguments.rs (renamed from src/test/ui/const-generics/early/invalid-const-arguments.rs)0
-rw-r--r--tests/ui/const-generics/early/invalid-const-arguments.stderr (renamed from src/test/ui/const-generics/early/invalid-const-arguments.stderr)0
-rw-r--r--tests/ui/const-generics/early/macro_rules-braces.rs (renamed from src/test/ui/const-generics/early/macro_rules-braces.rs)0
-rw-r--r--tests/ui/const-generics/early/macro_rules-braces.stderr (renamed from src/test/ui/const-generics/early/macro_rules-braces.stderr)0
-rw-r--r--tests/ui/const-generics/ensure_is_evaluatable.rs20
-rw-r--r--tests/ui/const-generics/ensure_is_evaluatable.stderr18
-rw-r--r--tests/ui/const-generics/enum-variants.rs (renamed from src/test/ui/const-generics/enum-variants.rs)0
-rw-r--r--tests/ui/const-generics/exhaustive-value.rs (renamed from src/test/ui/const-generics/exhaustive-value.rs)0
-rw-r--r--tests/ui/const-generics/exhaustive-value.stderr (renamed from src/test/ui/const-generics/exhaustive-value.stderr)0
-rw-r--r--tests/ui/const-generics/expose-default-substs-param-env.rs (renamed from src/test/ui/const-generics/expose-default-substs-param-env.rs)0
-rw-r--r--tests/ui/const-generics/float-generic.adt_const_params.stderr (renamed from src/test/ui/const-generics/float-generic.adt_const_params.stderr)0
-rw-r--r--tests/ui/const-generics/float-generic.rs (renamed from src/test/ui/const-generics/float-generic.rs)0
-rw-r--r--tests/ui/const-generics/float-generic.simple.stderr (renamed from src/test/ui/const-generics/float-generic.simple.stderr)0
-rw-r--r--tests/ui/const-generics/fn-const-param-call.full.stderr (renamed from src/test/ui/const-generics/fn-const-param-call.full.stderr)0
-rw-r--r--tests/ui/const-generics/fn-const-param-call.min.stderr (renamed from src/test/ui/const-generics/fn-const-param-call.min.stderr)0
-rw-r--r--tests/ui/const-generics/fn-const-param-call.rs (renamed from src/test/ui/const-generics/fn-const-param-call.rs)0
-rw-r--r--tests/ui/const-generics/fn-const-param-infer.full.stderr (renamed from src/test/ui/const-generics/fn-const-param-infer.full.stderr)0
-rw-r--r--tests/ui/const-generics/fn-const-param-infer.min.stderr (renamed from src/test/ui/const-generics/fn-const-param-infer.min.stderr)0
-rw-r--r--tests/ui/const-generics/fn-const-param-infer.rs (renamed from src/test/ui/const-generics/fn-const-param-infer.rs)0
-rw-r--r--tests/ui/const-generics/fn_with_two_const_inputs.rs23
-rw-r--r--tests/ui/const-generics/fn_with_two_const_inputs.stderr18
-rw-r--r--tests/ui/const-generics/fn_with_two_same_const_inputs.rs22
-rw-r--r--tests/ui/const-generics/forbid-non-structural_match-types.rs (renamed from src/test/ui/const-generics/forbid-non-structural_match-types.rs)0
-rw-r--r--tests/ui/const-generics/forbid-non-structural_match-types.stderr (renamed from src/test/ui/const-generics/forbid-non-structural_match-types.stderr)0
-rw-r--r--tests/ui/const-generics/foreign-item-const-parameter.rs (renamed from src/test/ui/const-generics/foreign-item-const-parameter.rs)0
-rw-r--r--tests/ui/const-generics/foreign-item-const-parameter.stderr (renamed from src/test/ui/const-generics/foreign-item-const-parameter.stderr)0
-rw-r--r--tests/ui/const-generics/generic-param-mismatch.rs (renamed from src/test/ui/const-generics/generic-param-mismatch.rs)0
-rw-r--r--tests/ui/const-generics/generic-param-mismatch.stderr (renamed from src/test/ui/const-generics/generic-param-mismatch.stderr)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/array-repeat-expr.rs (renamed from src/test/ui/const-generics/generic_arg_infer/array-repeat-expr.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/dont-use-defaults.rs (renamed from src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/in-signature.rs (renamed from src/test/ui/const-generics/generic_arg_infer/in-signature.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/in-signature.stderr (renamed from src/test/ui/const-generics/generic_arg_infer/in-signature.stderr)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs (renamed from src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr (renamed from src/test/ui/const-generics/generic_arg_infer/infer-arg-test.stderr)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs (renamed from src/test/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/issue-91614.rs (renamed from src/test/ui/const-generics/generic_arg_infer/issue-91614.rs)0
-rw-r--r--tests/ui/const-generics/generic_arg_infer/issue-91614.stderr (renamed from src/test/ui/const-generics/generic_arg_infer/issue-91614.stderr)9
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr)24
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr)2
-rw-r--r--tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs (renamed from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs (renamed from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs (renamed from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs (renamed from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs (renamed from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/associated-const.rs (renamed from src/test/ui/const-generics/generic_const_exprs/associated-const.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/associated-consts.rs (renamed from src/test/ui/const-generics/generic_const_exprs/associated-consts.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/auxiliary/anon_const_non_local.rs8
-rw-r--r--tests/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs (renamed from src/test/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs (renamed from src/test/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/closures.rs (renamed from src/test/ui/const-generics/generic_const_exprs/closures.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/closures.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/closures.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/const-block-is-poly.rs11
-rw-r--r--tests/ui/const-generics/generic_const_exprs/const-block-is-poly.stderr20
-rw-r--r--tests/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs (renamed from src/test/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs (renamed from src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/cross_crate.rs (renamed from src/test/ui/const-generics/generic_const_exprs/cross_crate.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs (renamed from src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/dependence_lint.rs (renamed from src/test/ui/const-generics/generic_const_exprs/dependence_lint.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/different-fn.rs (renamed from src/test/ui/const-generics/generic_const_exprs/different-fn.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/different-fn.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/different-fn.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/division.rs (renamed from src/test/ui/const-generics/generic_const_exprs/division.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs (renamed from src/test/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/drop_impl.rs (renamed from src/test/ui/const-generics/generic_const_exprs/drop_impl.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs (renamed from src/test/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/eval-privacy.rs (renamed from src/test/ui/const-generics/generic_const_exprs/eval-privacy.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/eval-privacy.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/eval-privacy.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/eval-try-unify.rs (renamed from src/test/ui/const-generics/generic_const_exprs/eval-try-unify.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/eval-try-unify.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/eval-try-unify.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs (renamed from src/test/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs (renamed from src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/fn_call.rs (renamed from src/test/ui/const-generics/generic_const_exprs/fn_call.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/from-sig-fail.rs (renamed from src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/from-sig-fail.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/from-sig.rs (renamed from src/test/ui/const-generics/generic_const_exprs/from-sig.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/function-call.rs (renamed from src/test/ui/const-generics/generic_const_exprs/function-call.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/function-call.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/function-call.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/impl-bounds.rs (renamed from src/test/ui/const-generics/generic_const_exprs/impl-bounds.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/infer-too-generic.rs (renamed from src/test/ui/const-generics/generic_const_exprs/infer-too-generic.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-100217.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-100217.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-100360.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-100360.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-102074.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-102074.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-102768.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-102768.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-102768.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-102768.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-105257.rs9
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-105257.stderr14
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-105608.rs15
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-105608.stderr14
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-62504.full.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-62504.min.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-62504.min.stderr)2
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-62504.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-62504.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-69654.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-69654.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-69654.stderr30
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr38
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-72787.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-72787.rs)2
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-73298.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-73298.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-73899.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-73899.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-74634.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-74634.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-74713.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-74713.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-74713.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-74713.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-76595.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-76595.rs)2
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-76595.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-76595.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr16
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-80742.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-80742.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-80742.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-80742.stderr)29
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-82268.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-82268.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-83765.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-83765.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-83765.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-83765.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-83972.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-83972.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-84408.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-84408.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-84669.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-84669.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-85848.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-85848.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-85848.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-85848.stderr)10
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-86710.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-86710.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-89851.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-89851.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-90847.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-90847.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-94287.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-94287.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-94287.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-94287.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-94293.rs31
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-99647.rs15
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-99705.rs (renamed from src/test/ui/const-generics/generic_const_exprs/issue-99705.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/less_than.rs (renamed from src/test/ui/const-generics/generic_const_exprs/less_than.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/let-bindings.rs (renamed from src/test/ui/const-generics/generic_const_exprs/let-bindings.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/let-bindings.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr)4
-rw-r--r--tests/ui/const-generics/generic_const_exprs/needs_where_clause.rs (renamed from src/test/ui/const-generics/generic_const_exprs/needs_where_clause.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/needs_where_clause.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs (renamed from src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs (renamed from src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs (renamed from src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs (renamed from src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/no_dependence.rs (renamed from src/test/ui/const-generics/generic_const_exprs/no_dependence.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/no_where_clause.rs (renamed from src/test/ui/const-generics/generic_const_exprs/no_where_clause.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/no_where_clause.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/no_where_clause.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.rs16
-rw-r--r--tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.stderr12
-rw-r--r--tests/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs (renamed from src/test/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/object-safety-ok.rs (renamed from src/test/ui/const-generics/generic_const_exprs/object-safety-ok.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/obligation-cause.rs (renamed from src/test/ui/const-generics/generic_const_exprs/obligation-cause.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/obligation-cause.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/simple_fail.rs (renamed from src/test/ui/const-generics/generic_const_exprs/simple_fail.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/simple_fail.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs (renamed from src/test/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs (renamed from src/test/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs (renamed from src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unop.rs (renamed from src/test/ui/const-generics/generic_const_exprs/unop.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs (renamed from src/test/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unused_expr.rs (renamed from src/test/ui/const-generics/generic_const_exprs/unused_expr.rs)0
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unused_expr.stderr (renamed from src/test/ui/const-generics/generic_const_exprs/unused_expr.stderr)6
-rw-r--r--tests/ui/const-generics/ice-68875.rs (renamed from src/test/ui/const-generics/ice-68875.rs)0
-rw-r--r--tests/ui/const-generics/ice-68875.stderr (renamed from src/test/ui/const-generics/ice-68875.stderr)0
-rw-r--r--tests/ui/const-generics/ice-const-generic-function-return-ty.rs (renamed from src/test/ui/const-generics/ice-const-generic-function-return-ty.rs)0
-rw-r--r--tests/ui/const-generics/ice-const-generic-function-return-ty.stderr (renamed from src/test/ui/const-generics/ice-const-generic-function-return-ty.stderr)0
-rw-r--r--tests/ui/const-generics/impl-const-generic-struct.rs (renamed from src/test/ui/const-generics/impl-const-generic-struct.rs)0
-rw-r--r--tests/ui/const-generics/incorrect-number-of-const-args.rs11
-rw-r--r--tests/ui/const-generics/incorrect-number-of-const-args.stderr (renamed from src/test/ui/const-generics/incorrect-number-of-const-args.stderr)0
-rw-r--r--tests/ui/const-generics/infer/cannot-infer-const-args.rs (renamed from src/test/ui/const-generics/infer/cannot-infer-const-args.rs)0
-rw-r--r--tests/ui/const-generics/infer/cannot-infer-const-args.stderr (renamed from src/test/ui/const-generics/infer/cannot-infer-const-args.stderr)0
-rw-r--r--tests/ui/const-generics/infer/issue-77092.rs (renamed from src/test/ui/const-generics/infer/issue-77092.rs)0
-rw-r--r--tests/ui/const-generics/infer/issue-77092.stderr (renamed from src/test/ui/const-generics/infer/issue-77092.stderr)0
-rw-r--r--tests/ui/const-generics/infer/method-chain.rs (renamed from src/test/ui/const-generics/infer/method-chain.rs)0
-rw-r--r--tests/ui/const-generics/infer/method-chain.stderr (renamed from src/test/ui/const-generics/infer/method-chain.stderr)0
-rw-r--r--tests/ui/const-generics/infer/one-param-uninferred.rs (renamed from src/test/ui/const-generics/infer/one-param-uninferred.rs)0
-rw-r--r--tests/ui/const-generics/infer/one-param-uninferred.stderr (renamed from src/test/ui/const-generics/infer/one-param-uninferred.stderr)0
-rw-r--r--tests/ui/const-generics/infer/uninferred-consts.rs (renamed from src/test/ui/const-generics/infer/uninferred-consts.rs)0
-rw-r--r--tests/ui/const-generics/infer/uninferred-consts.stderr (renamed from src/test/ui/const-generics/infer/uninferred-consts.stderr)0
-rw-r--r--tests/ui/const-generics/infer_arg_from_pat.rs (renamed from src/test/ui/const-generics/infer_arg_from_pat.rs)0
-rw-r--r--tests/ui/const-generics/infer_arr_len_from_pat.rs (renamed from src/test/ui/const-generics/infer_arr_len_from_pat.rs)0
-rw-r--r--tests/ui/const-generics/inhabited-assoc-ty-ice-1.rs (renamed from src/test/ui/const-generics/inhabited-assoc-ty-ice-1.rs)0
-rw-r--r--tests/ui/const-generics/inhabited-assoc-ty-ice-2.rs (renamed from src/test/ui/const-generics/inhabited-assoc-ty-ice-2.rs)0
-rw-r--r--tests/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs (renamed from src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs)0
-rw-r--r--tests/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr (renamed from src/test/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr)0
-rw-r--r--tests/ui/const-generics/intrinsics-type_name-as-const-argument.rs (renamed from src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs)0
-rw-r--r--tests/ui/const-generics/invalid-const-arg-for-type-param.rs (renamed from src/test/ui/const-generics/invalid-const-arg-for-type-param.rs)0
-rw-r--r--tests/ui/const-generics/invalid-const-arg-for-type-param.stderr (renamed from src/test/ui/const-generics/invalid-const-arg-for-type-param.stderr)5
-rw-r--r--tests/ui/const-generics/invalid-constant-in-args.rs (renamed from src/test/ui/const-generics/invalid-constant-in-args.rs)0
-rw-r--r--tests/ui/const-generics/invalid-constant-in-args.stderr11
-rw-r--r--tests/ui/const-generics/invalid-enum.rs (renamed from src/test/ui/const-generics/invalid-enum.rs)0
-rw-r--r--tests/ui/const-generics/invalid-enum.stderr (renamed from src/test/ui/const-generics/invalid-enum.stderr)0
-rw-r--r--tests/ui/const-generics/invariant.rs (renamed from src/test/ui/const-generics/invariant.rs)0
-rw-r--r--tests/ui/const-generics/invariant.stderr (renamed from src/test/ui/const-generics/invariant.stderr)0
-rw-r--r--tests/ui/const-generics/issue-102124.rs (renamed from src/test/ui/const-generics/issue-102124.rs)0
-rw-r--r--tests/ui/const-generics/issue-105689.rs14
-rw-r--r--tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs12
-rw-r--r--tests/ui/const-generics/issue-46511.rs (renamed from src/test/ui/const-generics/issue-46511.rs)0
-rw-r--r--tests/ui/const-generics/issue-46511.stderr (renamed from src/test/ui/const-generics/issue-46511.stderr)0
-rw-r--r--tests/ui/const-generics/issue-66451.rs (renamed from src/test/ui/const-generics/issue-66451.rs)0
-rw-r--r--tests/ui/const-generics/issue-66451.stderr (renamed from src/test/ui/const-generics/issue-66451.stderr)0
-rw-r--r--tests/ui/const-generics/issue-70408.rs (renamed from src/test/ui/const-generics/issue-70408.rs)0
-rw-r--r--tests/ui/const-generics/issue-80471.rs (renamed from src/test/ui/const-generics/issue-80471.rs)0
-rw-r--r--tests/ui/const-generics/issue-80471.stderr (renamed from src/test/ui/const-generics/issue-80471.stderr)0
-rw-r--r--tests/ui/const-generics/issue-93647.rs (renamed from src/test/ui/const-generics/issue-93647.rs)0
-rw-r--r--tests/ui/const-generics/issue-93647.stderr (renamed from src/test/ui/const-generics/issue-93647.stderr)1
-rw-r--r--tests/ui/const-generics/issue-97007.rs (renamed from src/test/ui/const-generics/issue-97007.rs)0
-rw-r--r--tests/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs (renamed from src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs)0
-rw-r--r--tests/ui/const-generics/issues/auxiliary/impl-const.rs (renamed from src/test/ui/const-generics/issues/auxiliary/impl-const.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-100313.rs (renamed from src/test/ui/const-generics/issues/issue-100313.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-100313.stderr (renamed from src/test/ui/const-generics/issues/issue-100313.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-105037.rs35
-rw-r--r--tests/ui/const-generics/issues/issue-56445-1.full.stderr (renamed from src/test/ui/const-generics/issues/issue-56445-1.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-1.min.stderr (renamed from src/test/ui/const-generics/issues/issue-56445-1.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-1.rs (renamed from src/test/ui/const-generics/issues/issue-56445-1.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-2.rs (renamed from src/test/ui/const-generics/issues/issue-56445-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-2.stderr (renamed from src/test/ui/const-generics/issues/issue-56445-2.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-3.rs (renamed from src/test/ui/const-generics/issues/issue-56445-3.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-56445-3.stderr (renamed from src/test/ui/const-generics/issues/issue-56445-3.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-60818-struct-constructors.rs (renamed from src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-61336-1.rs (renamed from src/test/ui/const-generics/issues/issue-61336-1.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-61336-2.rs (renamed from src/test/ui/const-generics/issues/issue-61336-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-61336-2.stderr (renamed from src/test/ui/const-generics/issues/issue-61336-2.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-61336.rs (renamed from src/test/ui/const-generics/issues/issue-61336.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-61336.stderr (renamed from src/test/ui/const-generics/issues/issue-61336.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-61422.rs (renamed from src/test/ui/const-generics/issues/issue-61422.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-61432.rs (renamed from src/test/ui/const-generics/issues/issue-61432.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs (renamed from src/test/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-62878.full.stderr (renamed from src/test/ui/const-generics/issues/issue-62878.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-62878.min.stderr (renamed from src/test/ui/const-generics/issues/issue-62878.min.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-62878.rs (renamed from src/test/ui/const-generics/issues/issue-62878.rs)2
-rw-r--r--tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr (renamed from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr (renamed from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-63322-forbid-dyn.rs (renamed from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-64519.rs (renamed from src/test/ui/const-generics/issues/issue-64519.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs (renamed from src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-66906.rs (renamed from src/test/ui/const-generics/issues/issue-66906.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67185-1.rs (renamed from src/test/ui/const-generics/issues/issue-67185-1.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67185-2.rs (renamed from src/test/ui/const-generics/issues/issue-67185-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67185-2.stderr (renamed from src/test/ui/const-generics/issues/issue-67185-2.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67375.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67375.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67375.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67375.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67375.rs (renamed from src/test/ui/const-generics/issues/issue-67375.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67739.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67739.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67739.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67739.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67739.rs (renamed from src/test/ui/const-generics/issues/issue-67739.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-1.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-1.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-1.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-1.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-1.rs (renamed from src/test/ui/const-generics/issues/issue-67945-1.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-2.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-2.full.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-67945-2.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-2.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-2.rs (renamed from src/test/ui/const-generics/issues/issue-67945-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-3.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-3.full.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-67945-3.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-3.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-3.rs (renamed from src/test/ui/const-generics/issues/issue-67945-3.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-4.full.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-4.full.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-67945-4.min.stderr (renamed from src/test/ui/const-generics/issues/issue-67945-4.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-67945-4.rs (renamed from src/test/ui/const-generics/issues/issue-67945-4.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-68104-print-stack-overflow.rs (renamed from src/test/ui/const-generics/issues/issue-68104-print-stack-overflow.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-68366.full.stderr (renamed from src/test/ui/const-generics/issues/issue-68366.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-68366.min.stderr (renamed from src/test/ui/const-generics/issues/issue-68366.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-68366.rs (renamed from src/test/ui/const-generics/issues/issue-68366.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-68596.rs (renamed from src/test/ui/const-generics/issues/issue-68596.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-68615-adt.min.stderr (renamed from src/test/ui/const-generics/issues/issue-68615-adt.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-68615-adt.rs (renamed from src/test/ui/const-generics/issues/issue-68615-adt.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-68615-array.min.stderr (renamed from src/test/ui/const-generics/issues/issue-68615-array.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-68615-array.rs (renamed from src/test/ui/const-generics/issues/issue-68615-array.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-69654-run-pass.rs (renamed from src/test/ui/const-generics/issues/issue-69654-run-pass.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70125-1.rs (renamed from src/test/ui/const-generics/issues/issue-70125-1.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70125-2.rs (renamed from src/test/ui/const-generics/issues/issue-70125-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70167.rs (renamed from src/test/ui/const-generics/issues/issue-70167.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70180-1-stalled_on.rs (renamed from src/test/ui/const-generics/issues/issue-70180-1-stalled_on.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70180-2-stalled_on.rs (renamed from src/test/ui/const-generics/issues/issue-70180-2-stalled_on.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70225.rs (renamed from src/test/ui/const-generics/issues/issue-70225.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-70273-assoc-fn.rs (renamed from src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71169.full.stderr (renamed from src/test/ui/const-generics/issues/issue-71169.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71169.min.stderr (renamed from src/test/ui/const-generics/issues/issue-71169.min.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-71169.rs (renamed from src/test/ui/const-generics/issues/issue-71169.rs)2
-rw-r--r--tests/ui/const-generics/issues/issue-71202.rs (renamed from src/test/ui/const-generics/issues/issue-71202.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71202.stderr (renamed from src/test/ui/const-generics/issues/issue-71202.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71381.full.stderr (renamed from src/test/ui/const-generics/issues/issue-71381.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71381.min.stderr (renamed from src/test/ui/const-generics/issues/issue-71381.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71381.rs (renamed from src/test/ui/const-generics/issues/issue-71381.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71382.full.stderr (renamed from src/test/ui/const-generics/issues/issue-71382.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71382.min.stderr (renamed from src/test/ui/const-generics/issues/issue-71382.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71382.rs (renamed from src/test/ui/const-generics/issues/issue-71382.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71547.rs (renamed from src/test/ui/const-generics/issues/issue-71547.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71611.full.stderr (renamed from src/test/ui/const-generics/issues/issue-71611.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71611.min.stderr (renamed from src/test/ui/const-generics/issues/issue-71611.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-71611.rs (renamed from src/test/ui/const-generics/issues/issue-71611.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-71986.rs (renamed from src/test/ui/const-generics/issues/issue-71986.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-72352.full.stderr (renamed from src/test/ui/const-generics/issues/issue-72352.full.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-72352.min.stderr (renamed from src/test/ui/const-generics/issues/issue-72352.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-72352.rs (renamed from src/test/ui/const-generics/issues/issue-72352.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-72845.rs (renamed from src/test/ui/const-generics/issues/issue-72845.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-72845.stderr (renamed from src/test/ui/const-generics/issues/issue-72845.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-73120.rs (renamed from src/test/ui/const-generics/issues/issue-73120.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-73260.rs (renamed from src/test/ui/const-generics/issues/issue-73260.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-73260.stderr (renamed from src/test/ui/const-generics/issues/issue-73260.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-73491.min.stderr (renamed from src/test/ui/const-generics/issues/issue-73491.min.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-73491.rs11
-rw-r--r--tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr (renamed from src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs (renamed from src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-74101.min.stderr (renamed from src/test/ui/const-generics/issues/issue-74101.min.stderr)4
-rw-r--r--tests/ui/const-generics/issues/issue-74101.rs12
-rw-r--r--tests/ui/const-generics/issues/issue-74255.min.stderr (renamed from src/test/ui/const-generics/issues/issue-74255.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-74255.rs (renamed from src/test/ui/const-generics/issues/issue-74255.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-74906.rs (renamed from src/test/ui/const-generics/issues/issue-74906.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-74950.min.stderr (renamed from src/test/ui/const-generics/issues/issue-74950.min.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-74950.rs (renamed from src/test/ui/const-generics/issues/issue-74950.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-75047.min.stderr (renamed from src/test/ui/const-generics/issues/issue-75047.min.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-75047.rs17
-rw-r--r--tests/ui/const-generics/issues/issue-75299.rs (renamed from src/test/ui/const-generics/issues/issue-75299.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-76701-ty-param-in-const.rs (renamed from src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr (renamed from src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-77357.rs (renamed from src/test/ui/const-generics/issues/issue-77357.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-77357.stderr (renamed from src/test/ui/const-generics/issues/issue-77357.stderr)2
-rw-r--r--tests/ui/const-generics/issues/issue-79674.rs (renamed from src/test/ui/const-generics/issues/issue-79674.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-79674.stderr (renamed from src/test/ui/const-generics/issues/issue-79674.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-80062.rs (renamed from src/test/ui/const-generics/issues/issue-80062.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-80062.stderr (renamed from src/test/ui/const-generics/issues/issue-80062.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-80375.rs (renamed from src/test/ui/const-generics/issues/issue-80375.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-80375.stderr (renamed from src/test/ui/const-generics/issues/issue-80375.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-82956.rs (renamed from src/test/ui/const-generics/issues/issue-82956.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-82956.stderr (renamed from src/test/ui/const-generics/issues/issue-82956.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-83249.rs (renamed from src/test/ui/const-generics/issues/issue-83249.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-83249.stderr (renamed from src/test/ui/const-generics/issues/issue-83249.stderr)4
-rw-r--r--tests/ui/const-generics/issues/issue-83288.rs (renamed from src/test/ui/const-generics/issues/issue-83288.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-83466.rs (renamed from src/test/ui/const-generics/issues/issue-83466.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-83466.stderr (renamed from src/test/ui/const-generics/issues/issue-83466.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-83765.rs (renamed from src/test/ui/const-generics/issues/issue-83765.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-83765.stderr (renamed from src/test/ui/const-generics/issues/issue-83765.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-83993.rs (renamed from src/test/ui/const-generics/issues/issue-83993.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-84659.rs (renamed from src/test/ui/const-generics/issues/issue-84659.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-84659.stderr (renamed from src/test/ui/const-generics/issues/issue-84659.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-85031-2.rs (renamed from src/test/ui/const-generics/issues/issue-85031-2.rs)3
-rw-r--r--tests/ui/const-generics/issues/issue-85031-2.stderr (renamed from src/test/ui/const-generics/issues/issue-85031-2.stderr)1
-rw-r--r--tests/ui/const-generics/issues/issue-86033.rs (renamed from src/test/ui/const-generics/issues/issue-86033.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-86530.rs (renamed from src/test/ui/const-generics/issues/issue-86530.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-86530.stderr (renamed from src/test/ui/const-generics/issues/issue-86530.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-86535-2.rs (renamed from src/test/ui/const-generics/issues/issue-86535-2.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-86535.rs (renamed from src/test/ui/const-generics/issues/issue-86535.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-86820.rs (renamed from src/test/ui/const-generics/issues/issue-86820.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-86820.stderr (renamed from src/test/ui/const-generics/issues/issue-86820.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-87076.rs (renamed from src/test/ui/const-generics/issues/issue-87076.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-87470.rs (renamed from src/test/ui/const-generics/issues/issue-87470.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-87493.rs (renamed from src/test/ui/const-generics/issues/issue-87493.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-87493.stderr (renamed from src/test/ui/const-generics/issues/issue-87493.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-87964.rs (renamed from src/test/ui/const-generics/issues/issue-87964.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-88119.rs (renamed from src/test/ui/const-generics/issues/issue-88119.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-88468.rs (renamed from src/test/ui/const-generics/issues/issue-88468.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-88997.rs (renamed from src/test/ui/const-generics/issues/issue-88997.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-88997.stderr (renamed from src/test/ui/const-generics/issues/issue-88997.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-89146.rs (renamed from src/test/ui/const-generics/issues/issue-89146.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-89304.rs (renamed from src/test/ui/const-generics/issues/issue-89304.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-89320.rs (renamed from src/test/ui/const-generics/issues/issue-89320.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-89334.rs (renamed from src/test/ui/const-generics/issues/issue-89334.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-90318.rs (renamed from src/test/ui/const-generics/issues/issue-90318.rs)4
-rw-r--r--tests/ui/const-generics/issues/issue-90318.stderr24
-rw-r--r--tests/ui/const-generics/issues/issue-90364.rs (renamed from src/test/ui/const-generics/issues/issue-90364.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-90364.stderr (renamed from src/test/ui/const-generics/issues/issue-90364.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-90455.rs (renamed from src/test/ui/const-generics/issues/issue-90455.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-90455.stderr (renamed from src/test/ui/const-generics/issues/issue-90455.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-92186.rs (renamed from src/test/ui/const-generics/issues/issue-92186.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-96654.rs (renamed from src/test/ui/const-generics/issues/issue-96654.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-97278.rs (renamed from src/test/ui/const-generics/issues/issue-97278.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-97278.stderr (renamed from src/test/ui/const-generics/issues/issue-97278.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-97634.rs (renamed from src/test/ui/const-generics/issues/issue-97634.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-98629.rs (renamed from src/test/ui/const-generics/issues/issue-98629.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-98629.stderr (renamed from src/test/ui/const-generics/issues/issue-98629.stderr)0
-rw-r--r--tests/ui/const-generics/issues/issue-99641.rs (renamed from src/test/ui/const-generics/issues/issue-99641.rs)0
-rw-r--r--tests/ui/const-generics/issues/issue-99641.stderr (renamed from src/test/ui/const-generics/issues/issue-99641.stderr)0
-rw-r--r--tests/ui/const-generics/late-bound-vars/in_closure.rs (renamed from src/test/ui/const-generics/late-bound-vars/in_closure.rs)0
-rw-r--r--tests/ui/const-generics/late-bound-vars/simple.rs (renamed from src/test/ui/const-generics/late-bound-vars/simple.rs)0
-rw-r--r--tests/ui/const-generics/legacy-const-generics-bad.rs (renamed from src/test/ui/const-generics/legacy-const-generics-bad.rs)0
-rw-r--r--tests/ui/const-generics/legacy-const-generics-bad.stderr (renamed from src/test/ui/const-generics/legacy-const-generics-bad.stderr)0
-rw-r--r--tests/ui/const-generics/legacy-const-generics.rs (renamed from src/test/ui/const-generics/legacy-const-generics.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/assoc_const.rs (renamed from src/test/ui/const-generics/min_const_generics/assoc_const.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/complex-expression.rs (renamed from src/test/ui/const-generics/min_const_generics/complex-expression.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/complex-expression.stderr (renamed from src/test/ui/const-generics/min_const_generics/complex-expression.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/complex-types.rs (renamed from src/test/ui/const-generics/min_const_generics/complex-types.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/complex-types.stderr (renamed from src/test/ui/const-generics/min_const_generics/complex-types.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs (renamed from src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr (renamed from src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs (renamed from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr (renamed from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs (renamed from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr (renamed from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const_default_first.rs (renamed from src/test/ui/const-generics/min_const_generics/const_default_first.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const_default_first.stderr (renamed from src/test/ui/const-generics/min_const_generics/const_default_first.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs (renamed from src/test/ui/const-generics/min_const_generics/const_fn_in_generics.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/default_function_param.rs (renamed from src/test/ui/const-generics/min_const_generics/default_function_param.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/default_function_param.stderr (renamed from src/test/ui/const-generics/min_const_generics/default_function_param.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/default_trait_param.rs (renamed from src/test/ui/const-generics/min_const_generics/default_trait_param.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs (renamed from src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr (renamed from src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs (renamed from src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr (renamed from src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/inferred_const.rs (renamed from src/test/ui/const-generics/min_const_generics/inferred_const.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr (renamed from src/test/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr (renamed from src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/invalid-patterns.rs (renamed from src/test/ui/const-generics/min_const_generics/invalid-patterns.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/macro-fail.rs (renamed from src/test/ui/const-generics/min_const_generics/macro-fail.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/macro-fail.stderr (renamed from src/test/ui/const-generics/min_const_generics/macro-fail.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/macro.rs (renamed from src/test/ui/const-generics/min_const_generics/macro.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/self-ty-in-const-1.rs (renamed from src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr (renamed from src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/self-ty-in-const-2.rs (renamed from src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.rs)0
-rw-r--r--tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr (renamed from src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr)0
-rw-r--r--tests/ui/const-generics/min_const_generics/type_and_const_defaults.rs (renamed from src/test/ui/const-generics/min_const_generics/type_and_const_defaults.rs)0
-rw-r--r--tests/ui/const-generics/nested-type.full.stderr (renamed from src/test/ui/const-generics/nested-type.full.stderr)0
-rw-r--r--tests/ui/const-generics/nested-type.min.stderr28
-rw-r--r--tests/ui/const-generics/nested-type.rs (renamed from src/test/ui/const-generics/nested-type.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/bind-param.rs (renamed from src/test/ui/const-generics/occurs-check/bind-param.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unify-fixpoint.rs (renamed from src/test/ui/const-generics/occurs-check/unify-fixpoint.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unify-fixpoint.stderr (renamed from src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unify-n-nplusone.rs (renamed from src/test/ui/const-generics/occurs-check/unify-n-nplusone.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unify-n-nplusone.stderr (renamed from src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-1.rs (renamed from src/test/ui/const-generics/occurs-check/unused-substs-1.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-1.stderr (renamed from src/test/ui/const-generics/occurs-check/unused-substs-1.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-2.rs (renamed from src/test/ui/const-generics/occurs-check/unused-substs-2.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-2.stderr (renamed from src/test/ui/const-generics/occurs-check/unused-substs-2.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-3.rs (renamed from src/test/ui/const-generics/occurs-check/unused-substs-3.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-3.stderr (renamed from src/test/ui/const-generics/occurs-check/unused-substs-3.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-4.rs (renamed from src/test/ui/const-generics/occurs-check/unused-substs-4.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-4.stderr (renamed from src/test/ui/const-generics/occurs-check/unused-substs-4.stderr)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-5.rs (renamed from src/test/ui/const-generics/occurs-check/unused-substs-5.rs)0
-rw-r--r--tests/ui/const-generics/occurs-check/unused-substs-5.stderr (renamed from src/test/ui/const-generics/occurs-check/unused-substs-5.stderr)0
-rw-r--r--tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs (renamed from src/test/ui/const-generics/outer-lifetime-in-const-generic-default.rs)0
-rw-r--r--tests/ui/const-generics/outer-lifetime-in-const-generic-default.stderr (renamed from src/test/ui/const-generics/outer-lifetime-in-const-generic-default.stderr)0
-rw-r--r--tests/ui/const-generics/overlapping_impls.rs (renamed from src/test/ui/const-generics/overlapping_impls.rs)0
-rw-r--r--tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr (renamed from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr)0
-rw-r--r--tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr (renamed from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr)0
-rw-r--r--tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs (renamed from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs)0
-rw-r--r--tests/ui/const-generics/parent_generics_of_encoding.rs (renamed from src/test/ui/const-generics/parent_generics_of_encoding.rs)0
-rw-r--r--tests/ui/const-generics/parent_generics_of_encoding_impl_trait.rs (renamed from src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.rs)0
-rw-r--r--tests/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr (renamed from src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-type.rs (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-type.rs)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013-type.stderr (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013-type.stderr)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013.rs (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013.rs)0
-rw-r--r--tests/ui/const-generics/parser-error-recovery/issue-89013.stderr (renamed from src/test/ui/const-generics/parser-error-recovery/issue-89013.stderr)0
-rw-r--r--tests/ui/const-generics/projection-as-arg-const.rs (renamed from src/test/ui/const-generics/projection-as-arg-const.rs)0
-rw-r--r--tests/ui/const-generics/projection-as-arg-const.stderr (renamed from src/test/ui/const-generics/projection-as-arg-const.stderr)0
-rw-r--r--tests/ui/const-generics/promotion.rs (renamed from src/test/ui/const-generics/promotion.rs)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param-deref.full.stderr (renamed from src/test/ui/const-generics/raw-ptr-const-param-deref.full.stderr)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param-deref.min.stderr (renamed from src/test/ui/const-generics/raw-ptr-const-param-deref.min.stderr)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param-deref.rs (renamed from src/test/ui/const-generics/raw-ptr-const-param-deref.rs)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param.full.stderr (renamed from src/test/ui/const-generics/raw-ptr-const-param.full.stderr)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param.min.stderr (renamed from src/test/ui/const-generics/raw-ptr-const-param.min.stderr)0
-rw-r--r--tests/ui/const-generics/raw-ptr-const-param.rs (renamed from src/test/ui/const-generics/raw-ptr-const-param.rs)0
-rw-r--r--tests/ui/const-generics/slice-const-param-mismatch.full.stderr (renamed from src/test/ui/const-generics/slice-const-param-mismatch.full.stderr)0
-rw-r--r--tests/ui/const-generics/slice-const-param-mismatch.min.stderr (renamed from src/test/ui/const-generics/slice-const-param-mismatch.min.stderr)0
-rw-r--r--tests/ui/const-generics/slice-const-param-mismatch.rs (renamed from src/test/ui/const-generics/slice-const-param-mismatch.rs)0
-rw-r--r--tests/ui/const-generics/slice-const-param.rs (renamed from src/test/ui/const-generics/slice-const-param.rs)0
-rw-r--r--tests/ui/const-generics/sneaky-array-repeat-expr.rs (renamed from src/test/ui/const-generics/sneaky-array-repeat-expr.rs)0
-rw-r--r--tests/ui/const-generics/sneaky-array-repeat-expr.stderr (renamed from src/test/ui/const-generics/sneaky-array-repeat-expr.stderr)0
-rw-r--r--tests/ui/const-generics/std/const-generics-range.min.stderr (renamed from src/test/ui/const-generics/std/const-generics-range.min.stderr)0
-rw-r--r--tests/ui/const-generics/std/const-generics-range.rs (renamed from src/test/ui/const-generics/std/const-generics-range.rs)0
-rw-r--r--tests/ui/const-generics/struct-with-invalid-const-param.rs (renamed from src/test/ui/const-generics/struct-with-invalid-const-param.rs)0
-rw-r--r--tests/ui/const-generics/struct-with-invalid-const-param.stderr (renamed from src/test/ui/const-generics/struct-with-invalid-const-param.stderr)0
-rw-r--r--tests/ui/const-generics/suggest_const_for_array.rs (renamed from src/test/ui/const-generics/suggest_const_for_array.rs)0
-rw-r--r--tests/ui/const-generics/suggest_const_for_array.stderr (renamed from src/test/ui/const-generics/suggest_const_for_array.stderr)0
-rw-r--r--tests/ui/const-generics/trait-const-args.rs (renamed from src/test/ui/const-generics/trait-const-args.rs)0
-rw-r--r--tests/ui/const-generics/transmute-const-param-static-reference.min.stderr (renamed from src/test/ui/const-generics/transmute-const-param-static-reference.min.stderr)0
-rw-r--r--tests/ui/const-generics/transmute-const-param-static-reference.rs (renamed from src/test/ui/const-generics/transmute-const-param-static-reference.rs)0
-rw-r--r--tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs (renamed from src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs)0
-rw-r--r--tests/ui/const-generics/try_unify_ignore_lifetimes.rs (renamed from src/test/ui/const-generics/try_unify_ignore_lifetimes.rs)0
-rw-r--r--tests/ui/const-generics/two_matching_preds.rs19
-rw-r--r--tests/ui/const-generics/type-after-const-ok.rs (renamed from src/test/ui/const-generics/type-after-const-ok.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs (renamed from src/test/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/const-arg-in-const-arg.rs (renamed from src/test/ui/const-generics/type-dependent/const-arg-in-const-arg.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-61936.rs (renamed from src/test/ui/const-generics/type-dependent/issue-61936.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-63695.rs (renamed from src/test/ui/const-generics/type-dependent/issue-63695.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-67144-1.rs (renamed from src/test/ui/const-generics/type-dependent/issue-67144-1.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-67144-2.rs (renamed from src/test/ui/const-generics/type-dependent/issue-67144-2.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-69816.rs (renamed from src/test/ui/const-generics/type-dependent/issue-69816.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-70217.rs (renamed from src/test/ui/const-generics/type-dependent/issue-70217.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-70507.rs (renamed from src/test/ui/const-generics/type-dependent/issue-70507.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-70586.rs (renamed from src/test/ui/const-generics/type-dependent/issue-70586.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-71348.min.stderr (renamed from src/test/ui/const-generics/type-dependent/issue-71348.min.stderr)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-71348.rs (renamed from src/test/ui/const-generics/type-dependent/issue-71348.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-71382.rs (renamed from src/test/ui/const-generics/type-dependent/issue-71382.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-71382.stderr (renamed from src/test/ui/const-generics/type-dependent/issue-71382.stderr)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-71805.rs (renamed from src/test/ui/const-generics/type-dependent/issue-71805.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/issue-73730.rs (renamed from src/test/ui/const-generics/type-dependent/issue-73730.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/non-local.rs (renamed from src/test/ui/const-generics/type-dependent/non-local.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/qpath.rs (renamed from src/test/ui/const-generics/type-dependent/qpath.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/simple.rs (renamed from src/test/ui/const-generics/type-dependent/simple.rs)0
-rw-r--r--tests/ui/const-generics/type-dependent/type-mismatch.full.stderr (renamed from src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr)0
-rw-r--r--tests/ui/const-generics/type-dependent/type-mismatch.min.stderr (renamed from src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr)0
-rw-r--r--tests/ui/const-generics/type-dependent/type-mismatch.rs (renamed from src/test/ui/const-generics/type-dependent/type-mismatch.rs)0
-rw-r--r--tests/ui/const-generics/type_mismatch.rs (renamed from src/test/ui/const-generics/type_mismatch.rs)0
-rw-r--r--tests/ui/const-generics/type_mismatch.stderr (renamed from src/test/ui/const-generics/type_mismatch.stderr)0
-rw-r--r--tests/ui/const-generics/type_not_in_scope.rs (renamed from src/test/ui/const-generics/type_not_in_scope.rs)0
-rw-r--r--tests/ui/const-generics/type_not_in_scope.stderr (renamed from src/test/ui/const-generics/type_not_in_scope.stderr)0
-rw-r--r--tests/ui/const-generics/type_of_anon_const.rs (renamed from src/test/ui/const-generics/type_of_anon_const.rs)0
-rw-r--r--tests/ui/const-generics/types-mismatch-const-args.full.stderr (renamed from src/test/ui/const-generics/types-mismatch-const-args.full.stderr)0
-rw-r--r--tests/ui/const-generics/types-mismatch-const-args.min.stderr (renamed from src/test/ui/const-generics/types-mismatch-const-args.min.stderr)0
-rw-r--r--tests/ui/const-generics/types-mismatch-const-args.rs (renamed from src/test/ui/const-generics/types-mismatch-const-args.rs)0
-rw-r--r--tests/ui/const-generics/unify_with_nested_expr.rs18
-rw-r--r--tests/ui/const-generics/unify_with_nested_expr.stderr22
-rw-r--r--tests/ui/const-generics/uninferred-consts-during-codegen-1.rs (renamed from src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs)0
-rw-r--r--tests/ui/const-generics/uninferred-consts-during-codegen-2.rs (renamed from src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs)0
-rw-r--r--tests/ui/const-generics/unknown_adt.rs (renamed from src/test/ui/const-generics/unknown_adt.rs)0
-rw-r--r--tests/ui/const-generics/unknown_adt.stderr (renamed from src/test/ui/const-generics/unknown_adt.stderr)0
-rw-r--r--tests/ui/const-generics/unused-const-param.rs (renamed from src/test/ui/const-generics/unused-const-param.rs)0
-rw-r--r--tests/ui/const-generics/unused-type-param-suggestion.rs (renamed from src/test/ui/const-generics/unused-type-param-suggestion.rs)0
-rw-r--r--tests/ui/const-generics/unused-type-param-suggestion.stderr (renamed from src/test/ui/const-generics/unused-type-param-suggestion.stderr)0
-rw-r--r--tests/ui/const-generics/unused_braces.fixed18
-rw-r--r--tests/ui/const-generics/unused_braces.full.fixed (renamed from src/test/ui/const-generics/unused_braces.full.fixed)0
-rw-r--r--tests/ui/const-generics/unused_braces.min.fixed (renamed from src/test/ui/const-generics/unused_braces.min.fixed)0
-rw-r--r--tests/ui/const-generics/unused_braces.rs18
-rw-r--r--tests/ui/const-generics/unused_braces.stderr19
-rw-r--r--tests/ui/const-generics/where-clauses.rs (renamed from src/test/ui/const-generics/where-clauses.rs)0
678 files changed, 767 insertions, 72 deletions
diff --git a/src/test/ui/const-generics/apit-with-const-param.rs b/tests/ui/const-generics/apit-with-const-param.rs
index 2a04dc313..2a04dc313 100644
--- a/src/test/ui/const-generics/apit-with-const-param.rs
+++ b/tests/ui/const-generics/apit-with-const-param.rs
diff --git a/src/test/ui/const-generics/arg-in-pat-1.rs b/tests/ui/const-generics/arg-in-pat-1.rs
index 82555084e..82555084e 100644
--- a/src/test/ui/const-generics/arg-in-pat-1.rs
+++ b/tests/ui/const-generics/arg-in-pat-1.rs
diff --git a/src/test/ui/const-generics/arg-in-pat-2.rs b/tests/ui/const-generics/arg-in-pat-2.rs
index dc9e722ed..dc9e722ed 100644
--- a/src/test/ui/const-generics/arg-in-pat-2.rs
+++ b/tests/ui/const-generics/arg-in-pat-2.rs
diff --git a/src/test/ui/const-generics/arg-in-pat-3.rs b/tests/ui/const-generics/arg-in-pat-3.rs
index 24626a3b6..24626a3b6 100644
--- a/src/test/ui/const-generics/arg-in-pat-3.rs
+++ b/tests/ui/const-generics/arg-in-pat-3.rs
diff --git a/src/test/ui/const-generics/argument_order.rs b/tests/ui/const-generics/argument_order.rs
index 196d9b8a1..196d9b8a1 100644
--- a/src/test/ui/const-generics/argument_order.rs
+++ b/tests/ui/const-generics/argument_order.rs
diff --git a/src/test/ui/const-generics/argument_order.stderr b/tests/ui/const-generics/argument_order.stderr
index 99122c6f5..99122c6f5 100644
--- a/src/test/ui/const-generics/argument_order.stderr
+++ b/tests/ui/const-generics/argument_order.stderr
diff --git a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
index b4a083636..b4a083636 100644
--- a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
+++ b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs
diff --git a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs
index 35df3278a..35df3278a 100644
--- a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs
+++ b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs
diff --git a/src/test/ui/const-generics/array-impls/alloc-types-impls-length-33.rs b/tests/ui/const-generics/array-impls/alloc-types-impls-length-33.rs
index 294b405e0..294b405e0 100644
--- a/src/test/ui/const-generics/array-impls/alloc-types-impls-length-33.rs
+++ b/tests/ui/const-generics/array-impls/alloc-types-impls-length-33.rs
diff --git a/src/test/ui/const-generics/array-impls/core-traits-impls-length-32.rs b/tests/ui/const-generics/array-impls/core-traits-impls-length-32.rs
index 9998bb84c..9998bb84c 100644
--- a/src/test/ui/const-generics/array-impls/core-traits-impls-length-32.rs
+++ b/tests/ui/const-generics/array-impls/core-traits-impls-length-32.rs
diff --git a/src/test/ui/const-generics/array-impls/core-traits-impls-length-33.rs b/tests/ui/const-generics/array-impls/core-traits-impls-length-33.rs
index c609a7c6f..c609a7c6f 100644
--- a/src/test/ui/const-generics/array-impls/core-traits-impls-length-33.rs
+++ b/tests/ui/const-generics/array-impls/core-traits-impls-length-33.rs
diff --git a/src/test/ui/const-generics/array-impls/into-iter-impls-length-32.rs b/tests/ui/const-generics/array-impls/into-iter-impls-length-32.rs
index 457e5ae60..457e5ae60 100644
--- a/src/test/ui/const-generics/array-impls/into-iter-impls-length-32.rs
+++ b/tests/ui/const-generics/array-impls/into-iter-impls-length-32.rs
diff --git a/src/test/ui/const-generics/array-impls/into-iter-impls-length-33.rs b/tests/ui/const-generics/array-impls/into-iter-impls-length-33.rs
index 4f343f3f9..4f343f3f9 100644
--- a/src/test/ui/const-generics/array-impls/into-iter-impls-length-33.rs
+++ b/tests/ui/const-generics/array-impls/into-iter-impls-length-33.rs
diff --git a/src/test/ui/const-generics/array-wrapper-struct-ctor.rs b/tests/ui/const-generics/array-wrapper-struct-ctor.rs
index a712f691d..a712f691d 100644
--- a/src/test/ui/const-generics/array-wrapper-struct-ctor.rs
+++ b/tests/ui/const-generics/array-wrapper-struct-ctor.rs
diff --git a/tests/ui/const-generics/assoc_const_eq_diagnostic.rs b/tests/ui/const-generics/assoc_const_eq_diagnostic.rs
new file mode 100644
index 000000000..4d0aaf88e
--- /dev/null
+++ b/tests/ui/const-generics/assoc_const_eq_diagnostic.rs
@@ -0,0 +1,18 @@
+#![feature(associated_const_equality)]
+
+pub enum Mode {
+ Cool,
+}
+
+pub trait Parse {
+ const MODE: Mode;
+}
+
+pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
+//~^ ERROR expected associated constant bound
+//~| ERROR expected type
+
+fn no_help() -> Mode::Cool {}
+//~^ ERROR expected type, found variant
+
+fn main() {}
diff --git a/tests/ui/const-generics/assoc_const_eq_diagnostic.stderr b/tests/ui/const-generics/assoc_const_eq_diagnostic.stderr
new file mode 100644
index 000000000..ba727ee0e
--- /dev/null
+++ b/tests/ui/const-generics/assoc_const_eq_diagnostic.stderr
@@ -0,0 +1,33 @@
+error[E0573]: expected type, found variant `Mode::Cool`
+ --> $DIR/assoc_const_eq_diagnostic.rs:11:35
+ |
+LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
+ | ^^^^^^^^^^
+ | |
+ | not a type
+ | help: try using the variant's enum: `Mode`
+
+error[E0573]: expected type, found variant `Mode::Cool`
+ --> $DIR/assoc_const_eq_diagnostic.rs:15:17
+ |
+LL | fn no_help() -> Mode::Cool {}
+ | ^^^^^^^^^^
+ | |
+ | not a type
+ | help: try using the variant's enum: `Mode`
+
+error: expected associated constant bound, found type
+ --> $DIR/assoc_const_eq_diagnostic.rs:11:28
+ |
+LL | pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
+ | ^^^^^^^^^^^^^^^^^ help: if equating a const, try wrapping with braces: `MODE = { const }`
+ |
+note: associated constant defined here
+ --> $DIR/assoc_const_eq_diagnostic.rs:8:5
+ |
+LL | const MODE: Mode;
+ | ^^^^^^^^^^^^^^^^
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0573`.
diff --git a/src/test/ui/const-generics/associated-type-bound-fail.rs b/tests/ui/const-generics/associated-type-bound-fail.rs
index 937b8bcb6..937b8bcb6 100644
--- a/src/test/ui/const-generics/associated-type-bound-fail.rs
+++ b/tests/ui/const-generics/associated-type-bound-fail.rs
diff --git a/src/test/ui/const-generics/associated-type-bound-fail.stderr b/tests/ui/const-generics/associated-type-bound-fail.stderr
index e5e7ee26e..e5e7ee26e 100644
--- a/src/test/ui/const-generics/associated-type-bound-fail.stderr
+++ b/tests/ui/const-generics/associated-type-bound-fail.stderr
diff --git a/src/test/ui/const-generics/associated-type-bound.rs b/tests/ui/const-generics/associated-type-bound.rs
index 3044736b4..3044736b4 100644
--- a/src/test/ui/const-generics/associated-type-bound.rs
+++ b/tests/ui/const-generics/associated-type-bound.rs
diff --git a/src/test/ui/const-generics/auxiliary/const_generic_lib.rs b/tests/ui/const-generics/auxiliary/const_generic_lib.rs
index 922f92d9f..922f92d9f 100644
--- a/src/test/ui/const-generics/auxiliary/const_generic_lib.rs
+++ b/tests/ui/const-generics/auxiliary/const_generic_lib.rs
diff --git a/src/test/ui/const-generics/auxiliary/crayte.rs b/tests/ui/const-generics/auxiliary/crayte.rs
index 19a8bb0f4..19a8bb0f4 100644
--- a/src/test/ui/const-generics/auxiliary/crayte.rs
+++ b/tests/ui/const-generics/auxiliary/crayte.rs
diff --git a/src/test/ui/const-generics/auxiliary/generics_of_parent.rs b/tests/ui/const-generics/auxiliary/generics_of_parent.rs
index 5c2b1f4bd..5c2b1f4bd 100644
--- a/src/test/ui/const-generics/auxiliary/generics_of_parent.rs
+++ b/tests/ui/const-generics/auxiliary/generics_of_parent.rs
diff --git a/src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs b/tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
index cd5b8161d..cd5b8161d 100644
--- a/src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
+++ b/tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
diff --git a/src/test/ui/const-generics/auxiliary/legacy-const-generics.rs b/tests/ui/const-generics/auxiliary/legacy-const-generics.rs
index 67352a2fb..67352a2fb 100644
--- a/src/test/ui/const-generics/auxiliary/legacy-const-generics.rs
+++ b/tests/ui/const-generics/auxiliary/legacy-const-generics.rs
diff --git a/src/test/ui/const-generics/backcompat/trait-resolution-breakage.rs b/tests/ui/const-generics/backcompat/trait-resolution-breakage.rs
index df1c99e86..df1c99e86 100644
--- a/src/test/ui/const-generics/backcompat/trait-resolution-breakage.rs
+++ b/tests/ui/const-generics/backcompat/trait-resolution-breakage.rs
diff --git a/src/test/ui/const-generics/backcompat/unevaluated-consts.rs b/tests/ui/const-generics/backcompat/unevaluated-consts.rs
index 3f90d22ae..3f90d22ae 100644
--- a/src/test/ui/const-generics/backcompat/unevaluated-consts.rs
+++ b/tests/ui/const-generics/backcompat/unevaluated-consts.rs
diff --git a/src/test/ui/const-generics/bad-const-generic-exprs.rs b/tests/ui/const-generics/bad-const-generic-exprs.rs
index ca91643ed..ca91643ed 100644
--- a/src/test/ui/const-generics/bad-const-generic-exprs.rs
+++ b/tests/ui/const-generics/bad-const-generic-exprs.rs
diff --git a/src/test/ui/const-generics/bad-const-generic-exprs.stderr b/tests/ui/const-generics/bad-const-generic-exprs.stderr
index 24668b08b..24668b08b 100644
--- a/src/test/ui/const-generics/bad-const-generic-exprs.stderr
+++ b/tests/ui/const-generics/bad-const-generic-exprs.stderr
diff --git a/src/test/ui/const-generics/broken-mir-1.rs b/tests/ui/const-generics/broken-mir-1.rs
index 6b6140e3a..6b6140e3a 100644
--- a/src/test/ui/const-generics/broken-mir-1.rs
+++ b/tests/ui/const-generics/broken-mir-1.rs
diff --git a/src/test/ui/const-generics/broken-mir-2.rs b/tests/ui/const-generics/broken-mir-2.rs
index 9d6228117..9d6228117 100644
--- a/src/test/ui/const-generics/broken-mir-2.rs
+++ b/tests/ui/const-generics/broken-mir-2.rs
diff --git a/src/test/ui/const-generics/cannot-infer-type-for-const-param.rs b/tests/ui/const-generics/cannot-infer-type-for-const-param.rs
index a6e767489..a6e767489 100644
--- a/src/test/ui/const-generics/cannot-infer-type-for-const-param.rs
+++ b/tests/ui/const-generics/cannot-infer-type-for-const-param.rs
diff --git a/src/test/ui/const-generics/coerce_unsized_array.rs b/tests/ui/const-generics/coerce_unsized_array.rs
index ffd5eb9d4..ffd5eb9d4 100644
--- a/src/test/ui/const-generics/coerce_unsized_array.rs
+++ b/tests/ui/const-generics/coerce_unsized_array.rs
diff --git a/src/test/ui/const-generics/concrete-const-as-fn-arg.rs b/tests/ui/const-generics/concrete-const-as-fn-arg.rs
index 372f0433e..372f0433e 100644
--- a/src/test/ui/const-generics/concrete-const-as-fn-arg.rs
+++ b/tests/ui/const-generics/concrete-const-as-fn-arg.rs
diff --git a/src/test/ui/const-generics/concrete-const-impl-method.rs b/tests/ui/const-generics/concrete-const-impl-method.rs
index 53c9c0ead..53c9c0ead 100644
--- a/src/test/ui/const-generics/concrete-const-impl-method.rs
+++ b/tests/ui/const-generics/concrete-const-impl-method.rs
diff --git a/src/test/ui/const-generics/condition-in-trait-const-arg.rs b/tests/ui/const-generics/condition-in-trait-const-arg.rs
index 6f85237cf..6f85237cf 100644
--- a/src/test/ui/const-generics/condition-in-trait-const-arg.rs
+++ b/tests/ui/const-generics/condition-in-trait-const-arg.rs
diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.full.stderr b/tests/ui/const-generics/const-arg-in-const-arg.full.stderr
index 8672e79b3..8672e79b3 100644
--- a/src/test/ui/const-generics/const-arg-in-const-arg.full.stderr
+++ b/tests/ui/const-generics/const-arg-in-const-arg.full.stderr
diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.min.stderr b/tests/ui/const-generics/const-arg-in-const-arg.min.stderr
index f1353aa99..f1353aa99 100644
--- a/src/test/ui/const-generics/const-arg-in-const-arg.min.stderr
+++ b/tests/ui/const-generics/const-arg-in-const-arg.min.stderr
diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.rs b/tests/ui/const-generics/const-arg-in-const-arg.rs
index 44a4f560a..44a4f560a 100644
--- a/src/test/ui/const-generics/const-arg-in-const-arg.rs
+++ b/tests/ui/const-generics/const-arg-in-const-arg.rs
diff --git a/src/test/ui/const-generics/const-arg-in-fn.rs b/tests/ui/const-generics/const-arg-in-fn.rs
index 9b225b18d..9b225b18d 100644
--- a/src/test/ui/const-generics/const-arg-in-fn.rs
+++ b/tests/ui/const-generics/const-arg-in-fn.rs
diff --git a/src/test/ui/const-generics/const-arg-type-arg-misordered.rs b/tests/ui/const-generics/const-arg-type-arg-misordered.rs
index 8ee17e637..8ee17e637 100644
--- a/src/test/ui/const-generics/const-arg-type-arg-misordered.rs
+++ b/tests/ui/const-generics/const-arg-type-arg-misordered.rs
diff --git a/src/test/ui/const-generics/const-arg-type-arg-misordered.stderr b/tests/ui/const-generics/const-arg-type-arg-misordered.stderr
index 4e12f7a8c..4e12f7a8c 100644
--- a/src/test/ui/const-generics/const-arg-type-arg-misordered.stderr
+++ b/tests/ui/const-generics/const-arg-type-arg-misordered.stderr
diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs b/tests/ui/const-generics/const-argument-cross-crate-mismatch.rs
index d863d097d..d863d097d 100644
--- a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs
+++ b/tests/ui/const-generics/const-argument-cross-crate-mismatch.rs
diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.stderr b/tests/ui/const-generics/const-argument-cross-crate-mismatch.stderr
index d5eefd357..d5eefd357 100644
--- a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.stderr
+++ b/tests/ui/const-generics/const-argument-cross-crate-mismatch.stderr
diff --git a/src/test/ui/const-generics/const-argument-cross-crate.rs b/tests/ui/const-generics/const-argument-cross-crate.rs
index 5693409e9..5693409e9 100644
--- a/src/test/ui/const-generics/const-argument-cross-crate.rs
+++ b/tests/ui/const-generics/const-argument-cross-crate.rs
diff --git a/src/test/ui/const-generics/const-argument-if-length.full.stderr b/tests/ui/const-generics/const-argument-if-length.full.stderr
index 2ceba59cf..2ceba59cf 100644
--- a/src/test/ui/const-generics/const-argument-if-length.full.stderr
+++ b/tests/ui/const-generics/const-argument-if-length.full.stderr
diff --git a/src/test/ui/const-generics/const-argument-if-length.min.stderr b/tests/ui/const-generics/const-argument-if-length.min.stderr
index f85e60f63..f85e60f63 100644
--- a/src/test/ui/const-generics/const-argument-if-length.min.stderr
+++ b/tests/ui/const-generics/const-argument-if-length.min.stderr
diff --git a/src/test/ui/const-generics/const-argument-if-length.rs b/tests/ui/const-generics/const-argument-if-length.rs
index db1eafca2..db1eafca2 100644
--- a/src/test/ui/const-generics/const-argument-if-length.rs
+++ b/tests/ui/const-generics/const-argument-if-length.rs
diff --git a/src/test/ui/const-generics/const-argument-non-static-lifetime.min.stderr b/tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr
index f1f3a9c3d..f1f3a9c3d 100644
--- a/src/test/ui/const-generics/const-argument-non-static-lifetime.min.stderr
+++ b/tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr
diff --git a/src/test/ui/const-generics/const-argument-non-static-lifetime.rs b/tests/ui/const-generics/const-argument-non-static-lifetime.rs
index 36a569784..36a569784 100644
--- a/src/test/ui/const-generics/const-argument-non-static-lifetime.rs
+++ b/tests/ui/const-generics/const-argument-non-static-lifetime.rs
diff --git a/src/test/ui/const-generics/const-fn-with-const-param.rs b/tests/ui/const-generics/const-fn-with-const-param.rs
index 161bfaab4..161bfaab4 100644
--- a/src/test/ui/const-generics/const-fn-with-const-param.rs
+++ b/tests/ui/const-generics/const-fn-with-const-param.rs
diff --git a/src/test/ui/const-generics/const-generic-default-wont-borrowck.rs b/tests/ui/const-generics/const-generic-default-wont-borrowck.rs
index e64adacac..e64adacac 100644
--- a/src/test/ui/const-generics/const-generic-default-wont-borrowck.rs
+++ b/tests/ui/const-generics/const-generic-default-wont-borrowck.rs
diff --git a/src/test/ui/const-generics/const-generic-default-wont-borrowck.stderr b/tests/ui/const-generics/const-generic-default-wont-borrowck.stderr
index 0ed370b83..0ed370b83 100644
--- a/src/test/ui/const-generics/const-generic-default-wont-borrowck.stderr
+++ b/tests/ui/const-generics/const-generic-default-wont-borrowck.stderr
diff --git a/src/test/ui/const-generics/const-generic-function.rs b/tests/ui/const-generics/const-generic-function.rs
index c8d2683e5..c8d2683e5 100644
--- a/src/test/ui/const-generics/const-generic-function.rs
+++ b/tests/ui/const-generics/const-generic-function.rs
diff --git a/src/test/ui/const-generics/const-generic-function.stderr b/tests/ui/const-generics/const-generic-function.stderr
index 5ad3f1006..5ad3f1006 100644
--- a/src/test/ui/const-generics/const-generic-function.stderr
+++ b/tests/ui/const-generics/const-generic-function.stderr
diff --git a/src/test/ui/const-generics/const-generic-type_name.rs b/tests/ui/const-generics/const-generic-type_name.rs
index bb16be9c5..bb16be9c5 100644
--- a/src/test/ui/const-generics/const-generic-type_name.rs
+++ b/tests/ui/const-generics/const-generic-type_name.rs
diff --git a/src/test/ui/const-generics/const-param-after-const-literal-arg.rs b/tests/ui/const-generics/const-param-after-const-literal-arg.rs
index d8a0e076e..d8a0e076e 100644
--- a/src/test/ui/const-generics/const-param-after-const-literal-arg.rs
+++ b/tests/ui/const-generics/const-param-after-const-literal-arg.rs
diff --git a/src/test/ui/const-generics/const-param-before-other-params.rs b/tests/ui/const-generics/const-param-before-other-params.rs
index cb1cebe1f..cb1cebe1f 100644
--- a/src/test/ui/const-generics/const-param-before-other-params.rs
+++ b/tests/ui/const-generics/const-param-before-other-params.rs
diff --git a/src/test/ui/const-generics/const-param-before-other-params.stderr b/tests/ui/const-generics/const-param-before-other-params.stderr
index 2c7a47bbc..2c7a47bbc 100644
--- a/src/test/ui/const-generics/const-param-before-other-params.stderr
+++ b/tests/ui/const-generics/const-param-before-other-params.stderr
diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.full.stderr b/tests/ui/const-generics/const-param-elided-lifetime.full.stderr
index d6753a74f..d6753a74f 100644
--- a/src/test/ui/const-generics/const-param-elided-lifetime.full.stderr
+++ b/tests/ui/const-generics/const-param-elided-lifetime.full.stderr
diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr b/tests/ui/const-generics/const-param-elided-lifetime.min.stderr
index 4bba42c77..4bba42c77 100644
--- a/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr
+++ b/tests/ui/const-generics/const-param-elided-lifetime.min.stderr
diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.rs b/tests/ui/const-generics/const-param-elided-lifetime.rs
index 487b82dbf..487b82dbf 100644
--- a/src/test/ui/const-generics/const-param-elided-lifetime.rs
+++ b/tests/ui/const-generics/const-param-elided-lifetime.rs
diff --git a/src/test/ui/const-generics/const-param-in-async.rs b/tests/ui/const-generics/const-param-in-async.rs
index f823431e6..f823431e6 100644
--- a/src/test/ui/const-generics/const-param-in-async.rs
+++ b/tests/ui/const-generics/const-param-in-async.rs
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.full.stderr b/tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr
index f639e276f..f639e276f 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-const-param.full.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.min.stderr b/tests/ui/const-generics/const-param-type-depends-on-const-param.min.stderr
index a7b78b80c..24aa40521 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-const-param.min.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-const-param.min.stderr
@@ -10,7 +10,7 @@ error[E0770]: the type of const parameters must not depend on other generic para
LL | pub struct SelfDependent<const N: [u8; N]>;
| ^ the type must not depend on the parameter `N`
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; N]` is forbidden as the type of a const generic parameter
--> $DIR/const-param-type-depends-on-const-param.rs:11:47
|
LL | pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
@@ -19,7 +19,7 @@ LL | pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; N]` is forbidden as the type of a const generic parameter
--> $DIR/const-param-type-depends-on-const-param.rs:15:35
|
LL | pub struct SelfDependent<const N: [u8; N]>;
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.rs b/tests/ui/const-generics/const-param-type-depends-on-const-param.rs
index 9d50f9a47..64b2acb03 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-const-param.rs
+++ b/tests/ui/const-generics/const-param-type-depends-on-const-param.rs
@@ -10,10 +10,10 @@
pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
//~^ ERROR: the type of const parameters must not depend on other generic parameters
-//[min]~^^ ERROR `[u8; _]` is forbidden
+//[min]~^^ ERROR `[u8; N]` is forbidden
pub struct SelfDependent<const N: [u8; N]>;
//~^ ERROR: the type of const parameters must not depend on other generic parameters
-//[min]~^^ ERROR `[u8; _]` is forbidden
+//[min]~^^ ERROR `[u8; N]` is forbidden
fn main() {}
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs
index 781f50e61..781f50e61 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr
index 8e14defd6..8e14defd6 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.full.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param.full.stderr
index 32f7dea82..32f7dea82 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-type-param.full.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param.full.stderr
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
index 32f7dea82..32f7dea82 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr
diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.rs b/tests/ui/const-generics/const-param-type-depends-on-type-param.rs
index 71d91fd7e..71d91fd7e 100644
--- a/src/test/ui/const-generics/const-param-type-depends-on-type-param.rs
+++ b/tests/ui/const-generics/const-param-type-depends-on-type-param.rs
diff --git a/src/test/ui/const-generics/const-parameter-uppercase-lint.rs b/tests/ui/const-generics/const-parameter-uppercase-lint.rs
index b08d62ccc..b08d62ccc 100644
--- a/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
+++ b/tests/ui/const-generics/const-parameter-uppercase-lint.rs
diff --git a/src/test/ui/const-generics/const-parameter-uppercase-lint.stderr b/tests/ui/const-generics/const-parameter-uppercase-lint.stderr
index efaa18285..efaa18285 100644
--- a/src/test/ui/const-generics/const-parameter-uppercase-lint.stderr
+++ b/tests/ui/const-generics/const-parameter-uppercase-lint.stderr
diff --git a/src/test/ui/const-generics/const_trait_fn-issue-88433.rs b/tests/ui/const-generics/const_trait_fn-issue-88433.rs
index 6e04cfaec..6e04cfaec 100644
--- a/src/test/ui/const-generics/const_trait_fn-issue-88433.rs
+++ b/tests/ui/const-generics/const_trait_fn-issue-88433.rs
diff --git a/src/test/ui/const-generics/core-types.rs b/tests/ui/const-generics/core-types.rs
index 91410c4af..91410c4af 100644
--- a/src/test/ui/const-generics/core-types.rs
+++ b/tests/ui/const-generics/core-types.rs
diff --git a/src/test/ui/const-generics/cross_crate_complex.rs b/tests/ui/const-generics/cross_crate_complex.rs
index ebde155f7..ebde155f7 100644
--- a/src/test/ui/const-generics/cross_crate_complex.rs
+++ b/tests/ui/const-generics/cross_crate_complex.rs
diff --git a/src/test/ui/const-generics/defaults/auxiliary/const_defaulty.rs b/tests/ui/const-generics/defaults/auxiliary/const_defaulty.rs
index eed982534..eed982534 100644
--- a/src/test/ui/const-generics/defaults/auxiliary/const_defaulty.rs
+++ b/tests/ui/const-generics/defaults/auxiliary/const_defaulty.rs
diff --git a/src/test/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs b/tests/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs
index 26a2c47ff..26a2c47ff 100644
--- a/src/test/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs
+++ b/tests/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs
diff --git a/src/test/ui/const-generics/defaults/complex-generic-default-expr.min.stderr b/tests/ui/const-generics/defaults/complex-generic-default-expr.min.stderr
index b836cfeae..b836cfeae 100644
--- a/src/test/ui/const-generics/defaults/complex-generic-default-expr.min.stderr
+++ b/tests/ui/const-generics/defaults/complex-generic-default-expr.min.stderr
diff --git a/src/test/ui/const-generics/defaults/complex-generic-default-expr.rs b/tests/ui/const-generics/defaults/complex-generic-default-expr.rs
index 7f50d4c9f..7f50d4c9f 100644
--- a/src/test/ui/const-generics/defaults/complex-generic-default-expr.rs
+++ b/tests/ui/const-generics/defaults/complex-generic-default-expr.rs
diff --git a/src/test/ui/const-generics/defaults/complex-unord-param.rs b/tests/ui/const-generics/defaults/complex-unord-param.rs
index aebc5975a..aebc5975a 100644
--- a/src/test/ui/const-generics/defaults/complex-unord-param.rs
+++ b/tests/ui/const-generics/defaults/complex-unord-param.rs
diff --git a/src/test/ui/const-generics/defaults/const-default.rs b/tests/ui/const-generics/defaults/const-default.rs
index 65cb0eb14..65cb0eb14 100644
--- a/src/test/ui/const-generics/defaults/const-default.rs
+++ b/tests/ui/const-generics/defaults/const-default.rs
diff --git a/src/test/ui/const-generics/defaults/const-param-as-default-value.rs b/tests/ui/const-generics/defaults/const-param-as-default-value.rs
index c1c955d87..c1c955d87 100644
--- a/src/test/ui/const-generics/defaults/const-param-as-default-value.rs
+++ b/tests/ui/const-generics/defaults/const-param-as-default-value.rs
diff --git a/src/test/ui/const-generics/defaults/const-param-in-ty-defaults.rs b/tests/ui/const-generics/defaults/const-param-in-ty-defaults.rs
index 5f0cafe2e..5f0cafe2e 100644
--- a/src/test/ui/const-generics/defaults/const-param-in-ty-defaults.rs
+++ b/tests/ui/const-generics/defaults/const-param-in-ty-defaults.rs
diff --git a/src/test/ui/const-generics/defaults/default-annotation.rs b/tests/ui/const-generics/defaults/default-annotation.rs
index 7a9f5732f..7a9f5732f 100644
--- a/src/test/ui/const-generics/defaults/default-annotation.rs
+++ b/tests/ui/const-generics/defaults/default-annotation.rs
diff --git a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs
index 45275e609..45275e609 100644
--- a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs
+++ b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs
diff --git a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr
index 72d7001fd..72d7001fd 100644
--- a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr
+++ b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr
diff --git a/src/test/ui/const-generics/defaults/default-on-impl.rs b/tests/ui/const-generics/defaults/default-on-impl.rs
index 9ce46aa09..9ce46aa09 100644
--- a/src/test/ui/const-generics/defaults/default-on-impl.rs
+++ b/tests/ui/const-generics/defaults/default-on-impl.rs
diff --git a/src/test/ui/const-generics/defaults/default-on-impl.stderr b/tests/ui/const-generics/defaults/default-on-impl.stderr
index 4b2b05742..4b2b05742 100644
--- a/src/test/ui/const-generics/defaults/default-on-impl.stderr
+++ b/tests/ui/const-generics/defaults/default-on-impl.stderr
diff --git a/src/test/ui/const-generics/defaults/default-param-wf-concrete.rs b/tests/ui/const-generics/defaults/default-param-wf-concrete.rs
index 41a52c7eb..41a52c7eb 100644
--- a/src/test/ui/const-generics/defaults/default-param-wf-concrete.rs
+++ b/tests/ui/const-generics/defaults/default-param-wf-concrete.rs
diff --git a/src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr b/tests/ui/const-generics/defaults/default-param-wf-concrete.stderr
index e8ebddade..e8ebddade 100644
--- a/src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr
+++ b/tests/ui/const-generics/defaults/default-param-wf-concrete.stderr
diff --git a/src/test/ui/const-generics/defaults/doesnt_infer.rs b/tests/ui/const-generics/defaults/doesnt_infer.rs
index 9c59e672d..9c59e672d 100644
--- a/src/test/ui/const-generics/defaults/doesnt_infer.rs
+++ b/tests/ui/const-generics/defaults/doesnt_infer.rs
diff --git a/src/test/ui/const-generics/defaults/doesnt_infer.stderr b/tests/ui/const-generics/defaults/doesnt_infer.stderr
index 227b2f402..227b2f402 100644
--- a/src/test/ui/const-generics/defaults/doesnt_infer.stderr
+++ b/tests/ui/const-generics/defaults/doesnt_infer.stderr
diff --git a/src/test/ui/const-generics/defaults/external.rs b/tests/ui/const-generics/defaults/external.rs
index 25ec523cb..25ec523cb 100644
--- a/src/test/ui/const-generics/defaults/external.rs
+++ b/tests/ui/const-generics/defaults/external.rs
diff --git a/src/test/ui/const-generics/defaults/forward-declared.rs b/tests/ui/const-generics/defaults/forward-declared.rs
index ede3d873b..ede3d873b 100644
--- a/src/test/ui/const-generics/defaults/forward-declared.rs
+++ b/tests/ui/const-generics/defaults/forward-declared.rs
diff --git a/src/test/ui/const-generics/defaults/forward-declared.stderr b/tests/ui/const-generics/defaults/forward-declared.stderr
index 4856c7a1f..4856c7a1f 100644
--- a/src/test/ui/const-generics/defaults/forward-declared.stderr
+++ b/tests/ui/const-generics/defaults/forward-declared.stderr
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs b/tests/ui/const-generics/defaults/generic-expr-default-concrete.rs
index f082bd8d2..f082bd8d2 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs
+++ b/tests/ui/const-generics/defaults/generic-expr-default-concrete.rs
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.stderr b/tests/ui/const-generics/defaults/generic-expr-default-concrete.stderr
index 61b355118..61b355118 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.stderr
+++ b/tests/ui/const-generics/defaults/generic-expr-default-concrete.stderr
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs
index 777865d1c..777865d1c 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs
+++ b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr
index e83f89a60..e83f89a60 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr
+++ b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default.rs b/tests/ui/const-generics/defaults/generic-expr-default.rs
index 8fe43feb7..8fe43feb7 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default.rs
+++ b/tests/ui/const-generics/defaults/generic-expr-default.rs
diff --git a/src/test/ui/const-generics/defaults/generic-expr-default.stderr b/tests/ui/const-generics/defaults/generic-expr-default.stderr
index ada1498d1..ada1498d1 100644
--- a/src/test/ui/const-generics/defaults/generic-expr-default.stderr
+++ b/tests/ui/const-generics/defaults/generic-expr-default.stderr
diff --git a/src/test/ui/const-generics/defaults/intermixed-lifetime.rs b/tests/ui/const-generics/defaults/intermixed-lifetime.rs
index beaf7fc60..beaf7fc60 100644
--- a/src/test/ui/const-generics/defaults/intermixed-lifetime.rs
+++ b/tests/ui/const-generics/defaults/intermixed-lifetime.rs
diff --git a/src/test/ui/const-generics/defaults/intermixed-lifetime.stderr b/tests/ui/const-generics/defaults/intermixed-lifetime.stderr
index 5cff61dd9..5cff61dd9 100644
--- a/src/test/ui/const-generics/defaults/intermixed-lifetime.stderr
+++ b/tests/ui/const-generics/defaults/intermixed-lifetime.stderr
diff --git a/src/test/ui/const-generics/defaults/mismatch.rs b/tests/ui/const-generics/defaults/mismatch.rs
index ec131505e..ec131505e 100644
--- a/src/test/ui/const-generics/defaults/mismatch.rs
+++ b/tests/ui/const-generics/defaults/mismatch.rs
diff --git a/src/test/ui/const-generics/defaults/mismatch.stderr b/tests/ui/const-generics/defaults/mismatch.stderr
index 52c54aace..52c54aace 100644
--- a/src/test/ui/const-generics/defaults/mismatch.stderr
+++ b/tests/ui/const-generics/defaults/mismatch.stderr
diff --git a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs
index 5c9323261..5c9323261 100644
--- a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs
+++ b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs
diff --git a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr
index 3455f2c8e..3455f2c8e 100644
--- a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr
+++ b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr
diff --git a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs
index f928fc9e7..f928fc9e7 100644
--- a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs
+++ b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs
diff --git a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
index ba08b4646..ba08b4646 100644
--- a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
+++ b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
diff --git a/src/test/ui/const-generics/defaults/pretty-printing-ast.rs b/tests/ui/const-generics/defaults/pretty-printing-ast.rs
index e202d4e86..e202d4e86 100644
--- a/src/test/ui/const-generics/defaults/pretty-printing-ast.rs
+++ b/tests/ui/const-generics/defaults/pretty-printing-ast.rs
diff --git a/src/test/ui/const-generics/defaults/pretty-printing-ast.stdout b/tests/ui/const-generics/defaults/pretty-printing-ast.stdout
index 121138605..121138605 100644
--- a/src/test/ui/const-generics/defaults/pretty-printing-ast.stdout
+++ b/tests/ui/const-generics/defaults/pretty-printing-ast.stdout
diff --git a/src/test/ui/const-generics/defaults/repr-c-issue-82792.rs b/tests/ui/const-generics/defaults/repr-c-issue-82792.rs
index 118da2723..118da2723 100644
--- a/src/test/ui/const-generics/defaults/repr-c-issue-82792.rs
+++ b/tests/ui/const-generics/defaults/repr-c-issue-82792.rs
diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait.rs b/tests/ui/const-generics/defaults/rp_impl_trait.rs
index dde8eea45..dde8eea45 100644
--- a/src/test/ui/const-generics/defaults/rp_impl_trait.rs
+++ b/tests/ui/const-generics/defaults/rp_impl_trait.rs
diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.rs b/tests/ui/const-generics/defaults/rp_impl_trait_fail.rs
index 80013e7b4..80013e7b4 100644
--- a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.rs
+++ b/tests/ui/const-generics/defaults/rp_impl_trait_fail.rs
diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr b/tests/ui/const-generics/defaults/rp_impl_trait_fail.stderr
index a46bd5352..a46bd5352 100644
--- a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr
+++ b/tests/ui/const-generics/defaults/rp_impl_trait_fail.stderr
diff --git a/src/test/ui/const-generics/defaults/self-referential.rs b/tests/ui/const-generics/defaults/self-referential.rs
index 14a870dc3..14a870dc3 100644
--- a/src/test/ui/const-generics/defaults/self-referential.rs
+++ b/tests/ui/const-generics/defaults/self-referential.rs
diff --git a/src/test/ui/const-generics/defaults/self-referential.stderr b/tests/ui/const-generics/defaults/self-referential.stderr
index 170c1f7f7..170c1f7f7 100644
--- a/src/test/ui/const-generics/defaults/self-referential.stderr
+++ b/tests/ui/const-generics/defaults/self-referential.stderr
diff --git a/src/test/ui/const-generics/defaults/simple-defaults.rs b/tests/ui/const-generics/defaults/simple-defaults.rs
index 6a782d223..6a782d223 100644
--- a/src/test/ui/const-generics/defaults/simple-defaults.rs
+++ b/tests/ui/const-generics/defaults/simple-defaults.rs
diff --git a/src/test/ui/const-generics/defaults/trait_object_lt_defaults.rs b/tests/ui/const-generics/defaults/trait_object_lt_defaults.rs
index a1828727e..a1828727e 100644
--- a/src/test/ui/const-generics/defaults/trait_object_lt_defaults.rs
+++ b/tests/ui/const-generics/defaults/trait_object_lt_defaults.rs
diff --git a/src/test/ui/const-generics/defaults/trait_objects.rs b/tests/ui/const-generics/defaults/trait_objects.rs
index 750e40313..750e40313 100644
--- a/src/test/ui/const-generics/defaults/trait_objects.rs
+++ b/tests/ui/const-generics/defaults/trait_objects.rs
diff --git a/src/test/ui/const-generics/defaults/trait_objects_fail.rs b/tests/ui/const-generics/defaults/trait_objects_fail.rs
index 6ab803f99..6ab803f99 100644
--- a/src/test/ui/const-generics/defaults/trait_objects_fail.rs
+++ b/tests/ui/const-generics/defaults/trait_objects_fail.rs
diff --git a/src/test/ui/const-generics/defaults/trait_objects_fail.stderr b/tests/ui/const-generics/defaults/trait_objects_fail.stderr
index 0e8334d03..0e8334d03 100644
--- a/src/test/ui/const-generics/defaults/trait_objects_fail.stderr
+++ b/tests/ui/const-generics/defaults/trait_objects_fail.stderr
diff --git a/src/test/ui/const-generics/defaults/type-default-const-param-name.rs b/tests/ui/const-generics/defaults/type-default-const-param-name.rs
index 405664ded..405664ded 100644
--- a/src/test/ui/const-generics/defaults/type-default-const-param-name.rs
+++ b/tests/ui/const-generics/defaults/type-default-const-param-name.rs
diff --git a/src/test/ui/const-generics/defaults/wfness.rs b/tests/ui/const-generics/defaults/wfness.rs
index a93f67081..a93f67081 100644
--- a/src/test/ui/const-generics/defaults/wfness.rs
+++ b/tests/ui/const-generics/defaults/wfness.rs
diff --git a/src/test/ui/const-generics/defaults/wfness.stderr b/tests/ui/const-generics/defaults/wfness.stderr
index 25038f830..25038f830 100644
--- a/src/test/ui/const-generics/defaults/wfness.stderr
+++ b/tests/ui/const-generics/defaults/wfness.stderr
diff --git a/src/test/ui/const-generics/defaults/wrong-order.rs b/tests/ui/const-generics/defaults/wrong-order.rs
index d53d56f41..d53d56f41 100644
--- a/src/test/ui/const-generics/defaults/wrong-order.rs
+++ b/tests/ui/const-generics/defaults/wrong-order.rs
diff --git a/src/test/ui/const-generics/defaults/wrong-order.stderr b/tests/ui/const-generics/defaults/wrong-order.stderr
index 4d2628d03..4d2628d03 100644
--- a/src/test/ui/const-generics/defaults/wrong-order.stderr
+++ b/tests/ui/const-generics/defaults/wrong-order.stderr
diff --git a/src/test/ui/const-generics/deref-into-array-generic.rs b/tests/ui/const-generics/deref-into-array-generic.rs
index 7d75af12b..7d75af12b 100644
--- a/src/test/ui/const-generics/deref-into-array-generic.rs
+++ b/tests/ui/const-generics/deref-into-array-generic.rs
diff --git a/src/test/ui/const-generics/different_generic_args.full.stderr b/tests/ui/const-generics/different_generic_args.full.stderr
index eba1768f7..eba1768f7 100644
--- a/src/test/ui/const-generics/different_generic_args.full.stderr
+++ b/tests/ui/const-generics/different_generic_args.full.stderr
diff --git a/src/test/ui/const-generics/different_generic_args.min.stderr b/tests/ui/const-generics/different_generic_args.min.stderr
index eba1768f7..eba1768f7 100644
--- a/src/test/ui/const-generics/different_generic_args.min.stderr
+++ b/tests/ui/const-generics/different_generic_args.min.stderr
diff --git a/src/test/ui/const-generics/different_generic_args.rs b/tests/ui/const-generics/different_generic_args.rs
index 9ee0e0747..9ee0e0747 100644
--- a/src/test/ui/const-generics/different_generic_args.rs
+++ b/tests/ui/const-generics/different_generic_args.rs
diff --git a/src/test/ui/const-generics/different_generic_args_array.rs b/tests/ui/const-generics/different_generic_args_array.rs
index 4d225dfdd..4d225dfdd 100644
--- a/src/test/ui/const-generics/different_generic_args_array.rs
+++ b/tests/ui/const-generics/different_generic_args_array.rs
diff --git a/src/test/ui/const-generics/different_generic_args_array.stderr b/tests/ui/const-generics/different_generic_args_array.stderr
index 4c5b5ada4..4c5b5ada4 100644
--- a/src/test/ui/const-generics/different_generic_args_array.stderr
+++ b/tests/ui/const-generics/different_generic_args_array.stderr
diff --git a/src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.rs
index 6c4ee1af2..6c4ee1af2 100644
--- a/src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs
+++ b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.rs
diff --git a/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr
new file mode 100644
index 000000000..d8eebeb0d
--- /dev/null
+++ b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr
@@ -0,0 +1,9 @@
+error[E0277]: the trait bound `[Adt; std::mem::size_of::<Self::Assoc>()]: Foo` is not satisfied
+ --> $DIR/dont-evaluate-array-len-on-err-1.rs:15:9
+ |
+LL | <[Adt; std::mem::size_of::<Self::Assoc>()] as Foo>::bar()
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `[Adt; std::mem::size_of::<Self::Assoc>()]`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.
diff --git a/src/test/ui/const-generics/dyn-supertraits.rs b/tests/ui/const-generics/dyn-supertraits.rs
index 3dee326a1..3dee326a1 100644
--- a/src/test/ui/const-generics/dyn-supertraits.rs
+++ b/tests/ui/const-generics/dyn-supertraits.rs
diff --git a/src/test/ui/const-generics/early/closing-args-token.rs b/tests/ui/const-generics/early/closing-args-token.rs
index cb4d6299e..cb4d6299e 100644
--- a/src/test/ui/const-generics/early/closing-args-token.rs
+++ b/tests/ui/const-generics/early/closing-args-token.rs
diff --git a/src/test/ui/const-generics/early/closing-args-token.stderr b/tests/ui/const-generics/early/closing-args-token.stderr
index 58fff3a85..58fff3a85 100644
--- a/src/test/ui/const-generics/early/closing-args-token.stderr
+++ b/tests/ui/const-generics/early/closing-args-token.stderr
diff --git a/src/test/ui/const-generics/early/const-expression-parameter.rs b/tests/ui/const-generics/early/const-expression-parameter.rs
index 4cf7ba869..4cf7ba869 100644
--- a/src/test/ui/const-generics/early/const-expression-parameter.rs
+++ b/tests/ui/const-generics/early/const-expression-parameter.rs
diff --git a/src/test/ui/const-generics/early/const-expression-parameter.stderr b/tests/ui/const-generics/early/const-expression-parameter.stderr
index 4ce1be25e..4ce1be25e 100644
--- a/src/test/ui/const-generics/early/const-expression-parameter.stderr
+++ b/tests/ui/const-generics/early/const-expression-parameter.stderr
diff --git a/src/test/ui/const-generics/early/const-param-from-outer-fn.rs b/tests/ui/const-generics/early/const-param-from-outer-fn.rs
index c3b418ee3..c3b418ee3 100644
--- a/src/test/ui/const-generics/early/const-param-from-outer-fn.rs
+++ b/tests/ui/const-generics/early/const-param-from-outer-fn.rs
diff --git a/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr b/tests/ui/const-generics/early/const-param-from-outer-fn.stderr
index e3bf38b70..e3bf38b70 100644
--- a/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr
+++ b/tests/ui/const-generics/early/const-param-from-outer-fn.stderr
diff --git a/src/test/ui/const-generics/early/const-param-hygiene.rs b/tests/ui/const-generics/early/const-param-hygiene.rs
index fd4e5b409..fd4e5b409 100644
--- a/src/test/ui/const-generics/early/const-param-hygiene.rs
+++ b/tests/ui/const-generics/early/const-param-hygiene.rs
diff --git a/src/test/ui/const-generics/early/const-param-shadowing.rs b/tests/ui/const-generics/early/const-param-shadowing.rs
index ddd15dbc4..ddd15dbc4 100644
--- a/src/test/ui/const-generics/early/const-param-shadowing.rs
+++ b/tests/ui/const-generics/early/const-param-shadowing.rs
diff --git a/src/test/ui/const-generics/early/const-param-shadowing.stderr b/tests/ui/const-generics/early/const-param-shadowing.stderr
index 625338bd9..625338bd9 100644
--- a/src/test/ui/const-generics/early/const-param-shadowing.stderr
+++ b/tests/ui/const-generics/early/const-param-shadowing.stderr
diff --git a/src/test/ui/const-generics/early/invalid-const-arguments.rs b/tests/ui/const-generics/early/invalid-const-arguments.rs
index 6619c9758..6619c9758 100644
--- a/src/test/ui/const-generics/early/invalid-const-arguments.rs
+++ b/tests/ui/const-generics/early/invalid-const-arguments.rs
diff --git a/src/test/ui/const-generics/early/invalid-const-arguments.stderr b/tests/ui/const-generics/early/invalid-const-arguments.stderr
index b46e7e24f..b46e7e24f 100644
--- a/src/test/ui/const-generics/early/invalid-const-arguments.stderr
+++ b/tests/ui/const-generics/early/invalid-const-arguments.stderr
diff --git a/src/test/ui/const-generics/early/macro_rules-braces.rs b/tests/ui/const-generics/early/macro_rules-braces.rs
index 0ae914635..0ae914635 100644
--- a/src/test/ui/const-generics/early/macro_rules-braces.rs
+++ b/tests/ui/const-generics/early/macro_rules-braces.rs
diff --git a/src/test/ui/const-generics/early/macro_rules-braces.stderr b/tests/ui/const-generics/early/macro_rules-braces.stderr
index 49382dbf0..49382dbf0 100644
--- a/src/test/ui/const-generics/early/macro_rules-braces.stderr
+++ b/tests/ui/const-generics/early/macro_rules-braces.stderr
diff --git a/tests/ui/const-generics/ensure_is_evaluatable.rs b/tests/ui/const-generics/ensure_is_evaluatable.rs
new file mode 100644
index 000000000..1e8d8c3d3
--- /dev/null
+++ b/tests/ui/const-generics/ensure_is_evaluatable.rs
@@ -0,0 +1,20 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+fn foo<const N: usize, const M: usize>() -> [(); N+2]
+where
+ [(); N + 1]:,
+ [(); M + 1]:,
+{
+ bar()
+ //~^ ERROR: unconstrained
+}
+
+fn bar<const N: usize>() -> [(); N]
+where
+ [(); N + 1]:,
+{
+ [(); N]
+}
+
+fn main() {}
diff --git a/tests/ui/const-generics/ensure_is_evaluatable.stderr b/tests/ui/const-generics/ensure_is_evaluatable.stderr
new file mode 100644
index 000000000..bf6c35ad8
--- /dev/null
+++ b/tests/ui/const-generics/ensure_is_evaluatable.stderr
@@ -0,0 +1,18 @@
+error: unconstrained generic constant
+ --> $DIR/ensure_is_evaluatable.rs:9:5
+ |
+LL | bar()
+ | ^^^
+ |
+ = help: try adding a `where` bound using this expression: `where [(); N + 1]:`
+note: required by a bound in `bar`
+ --> $DIR/ensure_is_evaluatable.rs:15:10
+ |
+LL | fn bar<const N: usize>() -> [(); N]
+ | --- required by a bound in this
+LL | where
+LL | [(); N + 1]:,
+ | ^^^^^ required by this bound in `bar`
+
+error: aborting due to previous error
+
diff --git a/src/test/ui/const-generics/enum-variants.rs b/tests/ui/const-generics/enum-variants.rs
index 5c6c4a8ef..5c6c4a8ef 100644
--- a/src/test/ui/const-generics/enum-variants.rs
+++ b/tests/ui/const-generics/enum-variants.rs
diff --git a/src/test/ui/const-generics/exhaustive-value.rs b/tests/ui/const-generics/exhaustive-value.rs
index 778d49834..778d49834 100644
--- a/src/test/ui/const-generics/exhaustive-value.rs
+++ b/tests/ui/const-generics/exhaustive-value.rs
diff --git a/src/test/ui/const-generics/exhaustive-value.stderr b/tests/ui/const-generics/exhaustive-value.stderr
index 76a83ba67..76a83ba67 100644
--- a/src/test/ui/const-generics/exhaustive-value.stderr
+++ b/tests/ui/const-generics/exhaustive-value.stderr
diff --git a/src/test/ui/const-generics/expose-default-substs-param-env.rs b/tests/ui/const-generics/expose-default-substs-param-env.rs
index e40c93116..e40c93116 100644
--- a/src/test/ui/const-generics/expose-default-substs-param-env.rs
+++ b/tests/ui/const-generics/expose-default-substs-param-env.rs
diff --git a/src/test/ui/const-generics/float-generic.adt_const_params.stderr b/tests/ui/const-generics/float-generic.adt_const_params.stderr
index fef5ef0d1..fef5ef0d1 100644
--- a/src/test/ui/const-generics/float-generic.adt_const_params.stderr
+++ b/tests/ui/const-generics/float-generic.adt_const_params.stderr
diff --git a/src/test/ui/const-generics/float-generic.rs b/tests/ui/const-generics/float-generic.rs
index b72059b5b..b72059b5b 100644
--- a/src/test/ui/const-generics/float-generic.rs
+++ b/tests/ui/const-generics/float-generic.rs
diff --git a/src/test/ui/const-generics/float-generic.simple.stderr b/tests/ui/const-generics/float-generic.simple.stderr
index 89ca36b0f..89ca36b0f 100644
--- a/src/test/ui/const-generics/float-generic.simple.stderr
+++ b/tests/ui/const-generics/float-generic.simple.stderr
diff --git a/src/test/ui/const-generics/fn-const-param-call.full.stderr b/tests/ui/const-generics/fn-const-param-call.full.stderr
index b55c24498..b55c24498 100644
--- a/src/test/ui/const-generics/fn-const-param-call.full.stderr
+++ b/tests/ui/const-generics/fn-const-param-call.full.stderr
diff --git a/src/test/ui/const-generics/fn-const-param-call.min.stderr b/tests/ui/const-generics/fn-const-param-call.min.stderr
index d984449e6..d984449e6 100644
--- a/src/test/ui/const-generics/fn-const-param-call.min.stderr
+++ b/tests/ui/const-generics/fn-const-param-call.min.stderr
diff --git a/src/test/ui/const-generics/fn-const-param-call.rs b/tests/ui/const-generics/fn-const-param-call.rs
index dc516fb71..dc516fb71 100644
--- a/src/test/ui/const-generics/fn-const-param-call.rs
+++ b/tests/ui/const-generics/fn-const-param-call.rs
diff --git a/src/test/ui/const-generics/fn-const-param-infer.full.stderr b/tests/ui/const-generics/fn-const-param-infer.full.stderr
index 2d66a1923..2d66a1923 100644
--- a/src/test/ui/const-generics/fn-const-param-infer.full.stderr
+++ b/tests/ui/const-generics/fn-const-param-infer.full.stderr
diff --git a/src/test/ui/const-generics/fn-const-param-infer.min.stderr b/tests/ui/const-generics/fn-const-param-infer.min.stderr
index f0767a109..f0767a109 100644
--- a/src/test/ui/const-generics/fn-const-param-infer.min.stderr
+++ b/tests/ui/const-generics/fn-const-param-infer.min.stderr
diff --git a/src/test/ui/const-generics/fn-const-param-infer.rs b/tests/ui/const-generics/fn-const-param-infer.rs
index 22f5f529c..22f5f529c 100644
--- a/src/test/ui/const-generics/fn-const-param-infer.rs
+++ b/tests/ui/const-generics/fn-const-param-infer.rs
diff --git a/tests/ui/const-generics/fn_with_two_const_inputs.rs b/tests/ui/const-generics/fn_with_two_const_inputs.rs
new file mode 100644
index 000000000..0d6246a9f
--- /dev/null
+++ b/tests/ui/const-generics/fn_with_two_const_inputs.rs
@@ -0,0 +1,23 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+const fn both(_: usize, b: usize) -> usize {
+ b
+}
+
+fn foo<const N: usize, const M: usize>() -> [(); N + 2]
+where
+ [(); both(N + 1, M + 1)]:,
+{
+ bar()
+ //~^ ERROR: unconstrained generic constant
+}
+
+fn bar<const N: usize>() -> [(); N]
+where
+ [(); N + 1]:,
+{
+ [(); N]
+}
+
+fn main() {}
diff --git a/tests/ui/const-generics/fn_with_two_const_inputs.stderr b/tests/ui/const-generics/fn_with_two_const_inputs.stderr
new file mode 100644
index 000000000..614e7e0d2
--- /dev/null
+++ b/tests/ui/const-generics/fn_with_two_const_inputs.stderr
@@ -0,0 +1,18 @@
+error: unconstrained generic constant
+ --> $DIR/fn_with_two_const_inputs.rs:12:5
+ |
+LL | bar()
+ | ^^^
+ |
+ = help: try adding a `where` bound using this expression: `where [(); N + 1]:`
+note: required by a bound in `bar`
+ --> $DIR/fn_with_two_const_inputs.rs:18:10
+ |
+LL | fn bar<const N: usize>() -> [(); N]
+ | --- required by a bound in this
+LL | where
+LL | [(); N + 1]:,
+ | ^^^^^ required by this bound in `bar`
+
+error: aborting due to previous error
+
diff --git a/tests/ui/const-generics/fn_with_two_same_const_inputs.rs b/tests/ui/const-generics/fn_with_two_same_const_inputs.rs
new file mode 100644
index 000000000..f0ce093e0
--- /dev/null
+++ b/tests/ui/const-generics/fn_with_two_same_const_inputs.rs
@@ -0,0 +1,22 @@
+// check-pass
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+const fn both(_: usize, b: usize) -> usize {
+ b
+}
+
+fn foo<const N: usize>()
+where
+ [(); both(N + 1, N + 1)]:,
+{
+ bar::<N>();
+}
+
+fn bar<const N: usize>()
+where
+ [(); N + 1]:,
+{
+}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/forbid-non-structural_match-types.rs b/tests/ui/const-generics/forbid-non-structural_match-types.rs
index 6ae9d5cfb..6ae9d5cfb 100644
--- a/src/test/ui/const-generics/forbid-non-structural_match-types.rs
+++ b/tests/ui/const-generics/forbid-non-structural_match-types.rs
diff --git a/src/test/ui/const-generics/forbid-non-structural_match-types.stderr b/tests/ui/const-generics/forbid-non-structural_match-types.stderr
index 81b9bdfbd..81b9bdfbd 100644
--- a/src/test/ui/const-generics/forbid-non-structural_match-types.stderr
+++ b/tests/ui/const-generics/forbid-non-structural_match-types.stderr
diff --git a/src/test/ui/const-generics/foreign-item-const-parameter.rs b/tests/ui/const-generics/foreign-item-const-parameter.rs
index 4fe377b59..4fe377b59 100644
--- a/src/test/ui/const-generics/foreign-item-const-parameter.rs
+++ b/tests/ui/const-generics/foreign-item-const-parameter.rs
diff --git a/src/test/ui/const-generics/foreign-item-const-parameter.stderr b/tests/ui/const-generics/foreign-item-const-parameter.stderr
index b02db8700..b02db8700 100644
--- a/src/test/ui/const-generics/foreign-item-const-parameter.stderr
+++ b/tests/ui/const-generics/foreign-item-const-parameter.stderr
diff --git a/src/test/ui/const-generics/generic-param-mismatch.rs b/tests/ui/const-generics/generic-param-mismatch.rs
index 2e201e50a..2e201e50a 100644
--- a/src/test/ui/const-generics/generic-param-mismatch.rs
+++ b/tests/ui/const-generics/generic-param-mismatch.rs
diff --git a/src/test/ui/const-generics/generic-param-mismatch.stderr b/tests/ui/const-generics/generic-param-mismatch.stderr
index d0776d49d..d0776d49d 100644
--- a/src/test/ui/const-generics/generic-param-mismatch.stderr
+++ b/tests/ui/const-generics/generic-param-mismatch.stderr
diff --git a/src/test/ui/const-generics/generic_arg_infer/array-repeat-expr.rs b/tests/ui/const-generics/generic_arg_infer/array-repeat-expr.rs
index d3e53d7a8..d3e53d7a8 100644
--- a/src/test/ui/const-generics/generic_arg_infer/array-repeat-expr.rs
+++ b/tests/ui/const-generics/generic_arg_infer/array-repeat-expr.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs b/tests/ui/const-generics/generic_arg_infer/dont-use-defaults.rs
index 251160a0f..251160a0f 100644
--- a/src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs
+++ b/tests/ui/const-generics/generic_arg_infer/dont-use-defaults.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/in-signature.rs b/tests/ui/const-generics/generic_arg_infer/in-signature.rs
index 1f60b2242..1f60b2242 100644
--- a/src/test/ui/const-generics/generic_arg_infer/in-signature.rs
+++ b/tests/ui/const-generics/generic_arg_infer/in-signature.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/in-signature.stderr b/tests/ui/const-generics/generic_arg_infer/in-signature.stderr
index 52d1b29f9..52d1b29f9 100644
--- a/src/test/ui/const-generics/generic_arg_infer/in-signature.stderr
+++ b/tests/ui/const-generics/generic_arg_infer/in-signature.stderr
diff --git a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs
index 29aa0f59d..29aa0f59d 100644
--- a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs
+++ b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.stderr b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr
index e6d0c743d..e6d0c743d 100644
--- a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.stderr
+++ b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr
diff --git a/src/test/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs b/tests/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs
index 23c8d7537..23c8d7537 100644
--- a/src/test/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs
+++ b/tests/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/issue-91614.rs b/tests/ui/const-generics/generic_arg_infer/issue-91614.rs
index b45e2cbc7..b45e2cbc7 100644
--- a/src/test/ui/const-generics/generic_arg_infer/issue-91614.rs
+++ b/tests/ui/const-generics/generic_arg_infer/issue-91614.rs
diff --git a/src/test/ui/const-generics/generic_arg_infer/issue-91614.stderr b/tests/ui/const-generics/generic_arg_infer/issue-91614.stderr
index 688db695f..13ea4a295 100644
--- a/src/test/ui/const-generics/generic_arg_infer/issue-91614.stderr
+++ b/tests/ui/const-generics/generic_arg_infer/issue-91614.stderr
@@ -5,11 +5,14 @@ LL | let y = Mask::<_, _>::splat(false);
| ^ ------------------- type must be known at this point
|
= note: cannot satisfy `_: MaskElement`
+ = help: the following types implement trait `MaskElement`:
+ i16
+ i32
+ i64
+ i8
+ isize
note: required by a bound in `Mask::<T, LANES>::splat`
--> $SRC_DIR/core/src/../../portable-simd/crates/core_simd/src/masks.rs:LL:COL
- |
-LL | T: MaskElement,
- | ^^^^^^^^^^^ required by this bound in `Mask::<T, LANES>::splat`
help: consider giving `y` an explicit type, where the type for type parameter `T` is specified
|
LL | let y: Mask<_, LANES> = Mask::<_, _>::splat(false);
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs
index 06f00de13..06f00de13 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs
index 3b5b87b2b..3b5b87b2b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr
index 5ca04d25e..5ca04d25e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs
index 7561ae2fe..7561ae2fe 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr
index ada1050d3..cdf97bd88 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr
@@ -14,7 +14,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:17:5
@@ -28,7 +28,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error: unconstrained generic constant
--> $DIR/abstract-const-as-cast-3.rs:20:19
@@ -46,7 +46,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:20:5
@@ -60,7 +60,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:23:5
@@ -74,7 +74,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:25:5
@@ -88,7 +88,7 @@ note: required by a bound in `use_trait_impl::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:14:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error: unconstrained generic constant
--> $DIR/abstract-const-as-cast-3.rs:35:19
@@ -106,7 +106,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:35:5
@@ -120,7 +120,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error: unconstrained generic constant
--> $DIR/abstract-const-as-cast-3.rs:38:19
@@ -138,7 +138,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:38:5
@@ -152,7 +152,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:41:5
@@ -166,7 +166,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error[E0308]: mismatched types
--> $DIR/abstract-const-as-cast-3.rs:43:5
@@ -180,7 +180,7 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
--> $DIR/abstract-const-as-cast-3.rs:32:23
|
LL | fn assert_impl<T: Trait>() {}
- | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
+ | ^^^^^ required by this bound in `assert_impl`
error: aborting due to 12 previous errors
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs
index 184263f89..184263f89 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs
index 916d60c0e..916d60c0e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr
index d48b639db..d48b639db 100644
--- a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr
index 041232e86..1d10dfdf1 100644
--- a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr
@@ -10,7 +10,7 @@ error: overly complex generic constant
--> $DIR/array-size-in-generic-struct-param.rs:19:15
|
LL | arr: [u8; CFG.arr_size],
- | ^^^^^^^^^^^^ field access is not supported in generic constant
+ | ^^^^^^^^^^^^ field access is not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr
index 18e9135d0..18e9135d0 100644
--- a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs
index 7d3fe413c..7d3fe413c 100644
--- a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs
+++ b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs
index e8f89cb1a..e8f89cb1a 100644
--- a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs
+++ b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs
index c8f7553da..c8f7553da 100644
--- a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs
+++ b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr
index e4a0cabe5..e4a0cabe5 100644
--- a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs
index 274caa1e9..274caa1e9 100644
--- a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs
+++ b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs
index 6597b9f2b..6597b9f2b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs
+++ b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/associated-const.rs b/tests/ui/const-generics/generic_const_exprs/associated-const.rs
index a67776322..a67776322 100644
--- a/src/test/ui/const-generics/generic_const_exprs/associated-const.rs
+++ b/tests/ui/const-generics/generic_const_exprs/associated-const.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/associated-consts.rs b/tests/ui/const-generics/generic_const_exprs/associated-consts.rs
index b839008d4..b839008d4 100644
--- a/src/test/ui/const-generics/generic_const_exprs/associated-consts.rs
+++ b/tests/ui/const-generics/generic_const_exprs/associated-consts.rs
diff --git a/tests/ui/const-generics/generic_const_exprs/auxiliary/anon_const_non_local.rs b/tests/ui/const-generics/generic_const_exprs/auxiliary/anon_const_non_local.rs
new file mode 100644
index 000000000..97be07493
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/auxiliary/anon_const_non_local.rs
@@ -0,0 +1,8 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+pub struct Foo<const N: usize>;
+
+pub fn foo<const N: usize>() -> Foo<{ N + 1 }> {
+ Foo
+}
diff --git a/src/test/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs b/tests/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs
index 15d618cae..15d618cae 100644
--- a/src/test/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs
+++ b/tests/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs b/tests/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs
index df454dae7..df454dae7 100644
--- a/src/test/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs
+++ b/tests/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/closures.rs b/tests/ui/const-generics/generic_const_exprs/closures.rs
index 1ea310d06..1ea310d06 100644
--- a/src/test/ui/const-generics/generic_const_exprs/closures.rs
+++ b/tests/ui/const-generics/generic_const_exprs/closures.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/closures.stderr b/tests/ui/const-generics/generic_const_exprs/closures.stderr
index a7d891d77..a7d891d77 100644
--- a/src/test/ui/const-generics/generic_const_exprs/closures.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/closures.stderr
diff --git a/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.rs b/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.rs
new file mode 100644
index 000000000..7332a8f03
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.rs
@@ -0,0 +1,11 @@
+#![feature(inline_const, generic_const_exprs)]
+//~^ WARN the feature `generic_const_exprs` is incomplete
+
+fn foo<T>() {
+ let _ = [0u8; const { std::mem::size_of::<T>() }];
+ //~^ ERROR: overly complex generic constant
+}
+
+fn main() {
+ foo::<i32>();
+}
diff --git a/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.stderr b/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.stderr
new file mode 100644
index 000000000..f26259908
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/const-block-is-poly.stderr
@@ -0,0 +1,20 @@
+warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
+ --> $DIR/const-block-is-poly.rs:1:26
+ |
+LL | #![feature(inline_const, generic_const_exprs)]
+ | ^^^^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
+ = note: `#[warn(incomplete_features)]` on by default
+
+error: overly complex generic constant
+ --> $DIR/const-block-is-poly.rs:5:19
+ |
+LL | let _ = [0u8; const { std::mem::size_of::<T>() }];
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const blocks are not supported in generic constants
+ |
+ = help: consider moving this anonymous constant into a `const` function
+ = note: this operation may be supported in the future
+
+error: aborting due to previous error; 1 warning emitted
+
diff --git a/src/test/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs b/tests/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs
index 5874625ad..5874625ad 100644
--- a/src/test/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs
+++ b/tests/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs
index 6093fc70b..6093fc70b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs
+++ b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr
index da5194696..da5194696 100644
--- a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate.rs b/tests/ui/const-generics/generic_const_exprs/cross_crate.rs
index dfc69e0b0..dfc69e0b0 100644
--- a/src/test/ui/const-generics/generic_const_exprs/cross_crate.rs
+++ b/tests/ui/const-generics/generic_const_exprs/cross_crate.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs
index b08fffd69..b08fffd69 100644
--- a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs
+++ b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr
index 7b4d46b82..7b4d46b82 100644
--- a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr b/tests/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr
index d674e3acd..d674e3acd 100644
--- a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr b/tests/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr
index 74111ef1d..74111ef1d 100644
--- a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.rs b/tests/ui/const-generics/generic_const_exprs/dependence_lint.rs
index b715e07f8..b715e07f8 100644
--- a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.rs
+++ b/tests/ui/const-generics/generic_const_exprs/dependence_lint.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/different-fn.rs b/tests/ui/const-generics/generic_const_exprs/different-fn.rs
index e8bc703bd..e8bc703bd 100644
--- a/src/test/ui/const-generics/generic_const_exprs/different-fn.rs
+++ b/tests/ui/const-generics/generic_const_exprs/different-fn.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/different-fn.stderr b/tests/ui/const-generics/generic_const_exprs/different-fn.stderr
index 83a2f3740..83a2f3740 100644
--- a/src/test/ui/const-generics/generic_const_exprs/different-fn.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/different-fn.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/division.rs b/tests/ui/const-generics/generic_const_exprs/division.rs
index 098fa9e04..098fa9e04 100644
--- a/src/test/ui/const-generics/generic_const_exprs/division.rs
+++ b/tests/ui/const-generics/generic_const_exprs/division.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs
index 3543960c3..3543960c3 100644
--- a/src/test/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs
+++ b/tests/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/drop_impl.rs b/tests/ui/const-generics/generic_const_exprs/drop_impl.rs
index 077f77aa0..077f77aa0 100644
--- a/src/test/ui/const-generics/generic_const_exprs/drop_impl.rs
+++ b/tests/ui/const-generics/generic_const_exprs/drop_impl.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs b/tests/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs
index e4111157e..e4111157e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs
+++ b/tests/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.rs b/tests/ui/const-generics/generic_const_exprs/eval-privacy.rs
index 8023b998a..8023b998a 100644
--- a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.rs
+++ b/tests/ui/const-generics/generic_const_exprs/eval-privacy.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.stderr b/tests/ui/const-generics/generic_const_exprs/eval-privacy.stderr
index 2d9de8805..2d9de8805 100644
--- a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/eval-privacy.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.rs b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.rs
index c59d62e57..c59d62e57 100644
--- a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.rs
+++ b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.stderr b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.stderr
index 8eb1fccc5..8eb1fccc5 100644
--- a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs b/tests/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs
index 340e35e1c..340e35e1c 100644
--- a/src/test/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs
+++ b/tests/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs
index 10ab2fd86..10ab2fd86 100644
--- a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs
+++ b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr
index 2d60ebaa8..2d60ebaa8 100644
--- a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/fn_call.rs b/tests/ui/const-generics/generic_const_exprs/fn_call.rs
index cbe4277df..cbe4277df 100644
--- a/src/test/ui/const-generics/generic_const_exprs/fn_call.rs
+++ b/tests/ui/const-generics/generic_const_exprs/fn_call.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.rs
index b8f9827ec..b8f9827ec 100644
--- a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs
+++ b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.stderr
index bd71b49ee..bd71b49ee 100644
--- a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig.rs b/tests/ui/const-generics/generic_const_exprs/from-sig.rs
index 28de4f864..28de4f864 100644
--- a/src/test/ui/const-generics/generic_const_exprs/from-sig.rs
+++ b/tests/ui/const-generics/generic_const_exprs/from-sig.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/function-call.rs b/tests/ui/const-generics/generic_const_exprs/function-call.rs
index 3c866333d..3c866333d 100644
--- a/src/test/ui/const-generics/generic_const_exprs/function-call.rs
+++ b/tests/ui/const-generics/generic_const_exprs/function-call.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/function-call.stderr b/tests/ui/const-generics/generic_const_exprs/function-call.stderr
index 84abfe578..84abfe578 100644
--- a/src/test/ui/const-generics/generic_const_exprs/function-call.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/function-call.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/impl-bounds.rs b/tests/ui/const-generics/generic_const_exprs/impl-bounds.rs
index 7120d6ee2..7120d6ee2 100644
--- a/src/test/ui/const-generics/generic_const_exprs/impl-bounds.rs
+++ b/tests/ui/const-generics/generic_const_exprs/impl-bounds.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/infer-too-generic.rs b/tests/ui/const-generics/generic_const_exprs/infer-too-generic.rs
index b8058c252..b8058c252 100644
--- a/src/test/ui/const-generics/generic_const_exprs/infer-too-generic.rs
+++ b/tests/ui/const-generics/generic_const_exprs/infer-too-generic.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-100217.rs b/tests/ui/const-generics/generic_const_exprs/issue-100217.rs
index acdc348a3..acdc348a3 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-100217.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-100217.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-100360.rs b/tests/ui/const-generics/generic_const_exprs/issue-100360.rs
index 5572f1f88..5572f1f88 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-100360.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-100360.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102074.rs b/tests/ui/const-generics/generic_const_exprs/issue-102074.rs
index 66d15cf12..66d15cf12 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-102074.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-102074.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102768.rs b/tests/ui/const-generics/generic_const_exprs/issue-102768.rs
index 7aea0d30d..7aea0d30d 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-102768.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-102768.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102768.stderr b/tests/ui/const-generics/generic_const_exprs/issue-102768.stderr
index 8278edabe..8278edabe 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-102768.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-102768.stderr
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-105257.rs b/tests/ui/const-generics/generic_const_exprs/issue-105257.rs
new file mode 100644
index 000000000..d8b23bc01
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-105257.rs
@@ -0,0 +1,9 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+trait Trait<T> {
+ fn fnc<const N: usize = "">(&self) {} //~ERROR defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
+ fn foo<const N: usize = { std::mem::size_of::<T>() }>(&self) {} //~ERROR defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
+}
+
+fn main() {}
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-105257.stderr b/tests/ui/const-generics/generic_const_exprs/issue-105257.stderr
new file mode 100644
index 000000000..ed7a8cb19
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-105257.stderr
@@ -0,0 +1,14 @@
+error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
+ --> $DIR/issue-105257.rs:5:12
+ |
+LL | fn fnc<const N: usize = "">(&self) {}
+ | ^^^^^^^^^^^^^^^^^^^
+
+error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
+ --> $DIR/issue-105257.rs:6:12
+ |
+LL | fn foo<const N: usize = { std::mem::size_of::<T>() }>(&self) {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-105608.rs b/tests/ui/const-generics/generic_const_exprs/issue-105608.rs
new file mode 100644
index 000000000..e28ba3b1a
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-105608.rs
@@ -0,0 +1,15 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+struct Combination<const STRATEGIES: usize>;
+
+impl<const STRATEGIES: usize> Combination<STRATEGIES> {
+ fn and<M>(self) -> Combination<{ STRATEGIES + 1 }> {
+ Combination
+ }
+}
+
+pub fn main() {
+ Combination::<0>.and::<_>().and::<_>();
+ //~^ ERROR: type annotations needed
+}
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-105608.stderr b/tests/ui/const-generics/generic_const_exprs/issue-105608.stderr
new file mode 100644
index 000000000..0be4c43da
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-105608.stderr
@@ -0,0 +1,14 @@
+error[E0282]: type annotations needed
+ --> $DIR/issue-105608.rs:13:22
+ |
+LL | Combination::<0>.and::<_>().and::<_>();
+ | ^^^ cannot infer type of the type parameter `M` declared on the associated function `and`
+ |
+help: consider specifying the generic argument
+ |
+LL | Combination::<0>.and::<_>().and::<_>();
+ | ~~~~~
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0282`.
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.full.stderr b/tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr
index 0742db398..0742db398 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-62504.full.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-62504.min.stderr
index 9bea4105d..65822856e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-62504.min.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-62504.min.stderr
@@ -15,7 +15,7 @@ LL | ArrayHolder([0; Self::SIZE])
| arguments to this struct are incorrect
|
= note: expected array `[u32; X]`
- found array `[u32; _]`
+ found array `[u32; Self::SIZE]`
note: tuple struct defined here
--> $DIR/issue-62504.rs:14:8
|
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.rs b/tests/ui/const-generics/generic_const_exprs/issue-62504.rs
index a97f4b8ff..a97f4b8ff 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-62504.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-62504.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-69654.rs b/tests/ui/const-generics/generic_const_exprs/issue-69654.rs
index 9b36699bb..9b36699bb 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-69654.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-69654.rs
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-69654.stderr b/tests/ui/const-generics/generic_const_exprs/issue-69654.stderr
new file mode 100644
index 000000000..eb4ff8305
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-69654.stderr
@@ -0,0 +1,30 @@
+error[E0423]: expected value, found type parameter `T`
+ --> $DIR/issue-69654.rs:5:25
+ |
+LL | impl<T> Bar<T> for [u8; T] {}
+ | - ^ not a value
+ | |
+ | found this type parameter
+
+error[E0599]: the function or associated item `foo` exists for struct `Foo<_>`, but its trait bounds were not satisfied
+ --> $DIR/issue-69654.rs:17:10
+ |
+LL | struct Foo<const N: usize> {}
+ | -------------------------- function or associated item `foo` not found for this struct
+...
+LL | Foo::foo();
+ | ^^^ function or associated item cannot be called on `Foo<_>` due to unsatisfied trait bounds
+ |
+note: trait bound `[u8; _]: Bar<[(); _]>` was not satisfied
+ --> $DIR/issue-69654.rs:11:14
+ |
+LL | impl<const N: usize> Foo<N>
+ | ------
+LL | where
+LL | [u8; N]: Bar<[(); N]>,
+ | ^^^^^^^^^^^^ unsatisfied trait bound introduced here
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0423, E0599.
+For more information about an error, try `rustc --explain E0423`.
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr
new file mode 100644
index 000000000..ea6f5f692
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr
@@ -0,0 +1,38 @@
+error: generic parameters may not be used in const operations
+ --> $DIR/issue-72787.rs:11:17
+ |
+LL | Condition<{ LHS <= RHS }>: True
+ | ^^^ cannot perform const operation using `LHS`
+ |
+ = help: const parameters may only be used as standalone arguments, i.e. `LHS`
+ = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: generic parameters may not be used in const operations
+ --> $DIR/issue-72787.rs:11:24
+ |
+LL | Condition<{ LHS <= RHS }>: True
+ | ^^^ cannot perform const operation using `RHS`
+ |
+ = help: const parameters may only be used as standalone arguments, i.e. `RHS`
+ = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: generic parameters may not be used in const operations
+ --> $DIR/issue-72787.rs:23:25
+ |
+LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
+ | ^ cannot perform const operation using `I`
+ |
+ = help: const parameters may only be used as standalone arguments, i.e. `I`
+ = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: generic parameters may not be used in const operations
+ --> $DIR/issue-72787.rs:23:36
+ |
+LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
+ | ^ cannot perform const operation using `J`
+ |
+ = help: const parameters may only be used as standalone arguments, i.e. `J`
+ = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: aborting due to 4 previous errors
+
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72787.rs b/tests/ui/const-generics/generic_const_exprs/issue-72787.rs
index c651bf1c8..657fec2e9 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-72787.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-72787.rs
@@ -19,8 +19,6 @@ struct S<const I: u32, const J: u32>;
impl<const I: u32, const J: u32> S<I, J>
where
IsLessOrEqual<I, 8>: True,
-//[min]~^ Error type annotations needed
-//[min]~| Error type annotations needed
IsLessOrEqual<J, 8>: True,
IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
//[min]~^ Error generic parameters may not be used in const operations
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr
index f2fddfbfb..f2fddfbfb 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr
index 42671412f..42671412f 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs
index 7a5aa9e47..7a5aa9e47 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-73298.rs b/tests/ui/const-generics/generic_const_exprs/issue-73298.rs
index 3c59e1b79..3c59e1b79 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-73298.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-73298.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-73899.rs b/tests/ui/const-generics/generic_const_exprs/issue-73899.rs
index d1ab1be04..d1ab1be04 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-73899.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-73899.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74634.rs b/tests/ui/const-generics/generic_const_exprs/issue-74634.rs
index cd1f7a9da..cd1f7a9da 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-74634.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-74634.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74713.rs b/tests/ui/const-generics/generic_const_exprs/issue-74713.rs
index 0bcb997d9..0bcb997d9 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-74713.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-74713.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74713.stderr b/tests/ui/const-generics/generic_const_exprs/issue-74713.stderr
index e7673df0a..e7673df0a 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-74713.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-74713.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-76595.rs b/tests/ui/const-generics/generic_const_exprs/issue-76595.rs
index faa8b3d10..10247ce6b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-76595.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-76595.rs
@@ -13,5 +13,5 @@ fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
fn main() {
test::<2>();
- //~^ ERROR this function takes 2 generic arguments
+ //~^ ERROR function takes 2 generic arguments
}
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-76595.stderr b/tests/ui/const-generics/generic_const_exprs/issue-76595.stderr
index c587a7e15..c587a7e15 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-76595.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-76595.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs
index 2fa9a71fb..2fa9a71fb 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr
new file mode 100644
index 000000000..9baf9790e
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr
@@ -0,0 +1,16 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-79518-default_trait_method_normalization.rs:16:32
+ |
+LL | Self::AssocInstance == [(); std::mem::size_of::<Self::Assoc>()];
+ | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found array `[(); std::mem::size_of::<Self::Assoc>()]`
+ | |
+ | expected because this is `<Self as Foo>::Assoc`
+ |
+ = note: expected associated type `<Self as Foo>::Assoc`
+ found array `[(); std::mem::size_of::<Self::Assoc>()]`
+ = help: consider constraining the associated type `<Self as Foo>::Assoc` to `[(); std::mem::size_of::<Self::Assoc>()]` or calling a method that returns `<Self as Foo>::Assoc`
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs b/tests/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs
index 77d3c98da..77d3c98da 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80742.rs b/tests/ui/const-generics/generic_const_exprs/issue-80742.rs
index 275f69953..275f69953 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-80742.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-80742.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80742.stderr b/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr
index bf1b411ee..6aa8ee13b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-80742.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr
@@ -1,14 +1,10 @@
error[E0080]: evaluation of `Inline::<dyn std::fmt::Debug>::{constant#0}` failed
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
-LL | intrinsics::size_of::<T>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ size_of called on unsized type `dyn Debug`
+ = note: size_of called on unsized type `dyn Debug`
|
note: inside `std::mem::size_of::<dyn Debug>`
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
- |
-LL | intrinsics::size_of::<T>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `Inline::<dyn Debug>::{constant#0}`
--> $DIR/issue-80742.rs:22:10
|
@@ -23,26 +19,29 @@ LL | struct Inline<T>
...
LL | let dst = Inline::<dyn Debug>::new(0);
| ^^^ function or associated item cannot be called on `Inline<dyn Debug>` due to unsatisfied trait bounds
+ --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
+ |
+ = note: doesn't satisfy `dyn Debug: Sized`
|
- ::: $SRC_DIR/core/src/fmt/mod.rs:LL:COL
+note: trait bound `dyn Debug: Sized` was not satisfied
+ --> $DIR/issue-80742.rs:20:6
|
-LL | pub trait Debug {
- | --------------- doesn't satisfy `dyn Debug: Sized`
+LL | impl<T> Inline<T>
+ | ^ ---------
+ | |
+ | unsatisfied trait bound introduced here
+help: consider relaxing the type parameter's implicit `Sized` bound
|
- = note: the following trait bounds were not satisfied:
- `dyn Debug: Sized`
+LL | impl<T: ?Sized> Inline<T>
+ | ++++++++
error[E0080]: evaluation of `Inline::<dyn std::fmt::Debug>::{constant#0}` failed
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
-LL | intrinsics::size_of::<T>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ size_of called on unsized type `dyn Debug`
+ = note: size_of called on unsized type `dyn Debug`
|
note: inside `std::mem::size_of::<dyn Debug>`
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
- |
-LL | intrinsics::size_of::<T>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `Inline::<dyn Debug>::{constant#0}`
--> $DIR/issue-80742.rs:14:10
|
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-82268.rs b/tests/ui/const-generics/generic_const_exprs/issue-82268.rs
index d08fc5beb..d08fc5beb 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-82268.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-82268.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83765.rs b/tests/ui/const-generics/generic_const_exprs/issue-83765.rs
index fac811d13..fac811d13 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-83765.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-83765.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83765.stderr b/tests/ui/const-generics/generic_const_exprs/issue-83765.stderr
index b693023f1..b693023f1 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-83765.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-83765.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83972.rs b/tests/ui/const-generics/generic_const_exprs/issue-83972.rs
index 0063719b8..0063719b8 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-83972.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-83972.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-84408.rs b/tests/ui/const-generics/generic_const_exprs/issue-84408.rs
index fb2e5590d..fb2e5590d 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-84408.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-84408.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-84669.rs b/tests/ui/const-generics/generic_const_exprs/issue-84669.rs
index 3933ff20a..3933ff20a 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-84669.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-84669.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-85848.rs b/tests/ui/const-generics/generic_const_exprs/issue-85848.rs
index 3a7f4c618..3a7f4c618 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-85848.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-85848.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-85848.stderr b/tests/ui/const-generics/generic_const_exprs/issue-85848.stderr
index 09bcb0860..e50ac671e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-85848.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-85848.stderr
@@ -11,12 +11,12 @@ note: required for `&C` to implement `Contains<(), true>`
--> $DIR/issue-85848.rs:21:12
|
LL | impl<T, U> Contains<T, { contains::<T, U>() }> for U where T: _Contains<U> {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ------------ unsatisfied trait bound introduced here
note: required for `&C` to implement `Delegates<()>`
--> $DIR/issue-85848.rs:12:12
|
LL | impl<T, U> Delegates<U> for T where T: Contains<U, true> {}
- | ^^^^^^^^^^^^ ^
+ | ^^^^^^^^^^^^ ^ ----------------- unsatisfied trait bound introduced here
note: required by a bound in `writes_to_specific_path`
--> $DIR/issue-85848.rs:30:31
|
@@ -36,12 +36,14 @@ note: required for `&C` to implement `Contains<(), true>`
--> $DIR/issue-85848.rs:21:12
|
LL | impl<T, U> Contains<T, { contains::<T, U>() }> for U where T: _Contains<U> {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
+ | ^^^^^^^^^^^^----------------------^ ^
+ | |
+ | unsatisfied trait bound introduced here
note: required for `&C` to implement `Delegates<()>`
--> $DIR/issue-85848.rs:12:12
|
LL | impl<T, U> Delegates<U> for T where T: Contains<U, true> {}
- | ^^^^^^^^^^^^ ^
+ | ^^^^^^^^^^^^ ^ ----------------- unsatisfied trait bound introduced here
note: required by a bound in `writes_to_specific_path`
--> $DIR/issue-85848.rs:30:31
|
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-86710.rs b/tests/ui/const-generics/generic_const_exprs/issue-86710.rs
index bdd8a21b3..bdd8a21b3 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-86710.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-86710.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-89851.rs b/tests/ui/const-generics/generic_const_exprs/issue-89851.rs
index cde849d90..cde849d90 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-89851.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-89851.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-90847.rs b/tests/ui/const-generics/generic_const_exprs/issue-90847.rs
index ebc6fe141..ebc6fe141 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-90847.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-90847.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-94287.rs b/tests/ui/const-generics/generic_const_exprs/issue-94287.rs
index 643126a46..643126a46 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-94287.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-94287.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-94287.stderr b/tests/ui/const-generics/generic_const_exprs/issue-94287.stderr
index 7390a0077..7390a0077 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-94287.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-94287.stderr
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-94293.rs b/tests/ui/const-generics/generic_const_exprs/issue-94293.rs
new file mode 100644
index 000000000..713c5d89a
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-94293.rs
@@ -0,0 +1,31 @@
+// check-pass
+
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+#![deny(const_evaluatable_unchecked)]
+
+pub struct If<const CONDITION: bool>;
+pub trait True {}
+impl True for If<true> {}
+
+pub struct FixedI8<const FRAC: u32> {
+ pub bits: i8,
+}
+
+impl<const FRAC_LHS: u32, const FRAC_RHS: u32> PartialEq<FixedI8<FRAC_RHS>> for FixedI8<FRAC_LHS>
+where
+ If<{ FRAC_RHS <= 8 }>: True,
+{
+ fn eq(&self, _rhs: &FixedI8<FRAC_RHS>) -> bool {
+ unimplemented!()
+ }
+}
+
+impl<const FRAC: u32> PartialEq<i8> for FixedI8<FRAC> {
+ fn eq(&self, rhs: &i8) -> bool {
+ let rhs_as_fixed = FixedI8::<0> { bits: *rhs };
+ PartialEq::eq(self, &rhs_as_fixed)
+ }
+}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs
index 67e30232e..67e30232e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr
index 1cceaece7..1cceaece7 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs
index 00568a089..00568a089 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr
index 774e842bc..774e842bc 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-99647.rs b/tests/ui/const-generics/generic_const_exprs/issue-99647.rs
new file mode 100644
index 000000000..f797beda8
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/issue-99647.rs
@@ -0,0 +1,15 @@
+// edition:2018
+// run-pass
+
+#![allow(incomplete_features)]
+#![feature(generic_const_exprs)]
+
+#[allow(unused)]
+async fn foo<'a>() {
+ let _data = &mut [0u8; { 1 + 4 }];
+ bar().await
+}
+
+async fn bar() {}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-99705.rs b/tests/ui/const-generics/generic_const_exprs/issue-99705.rs
index 75b57b621..75b57b621 100644
--- a/src/test/ui/const-generics/generic_const_exprs/issue-99705.rs
+++ b/tests/ui/const-generics/generic_const_exprs/issue-99705.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/less_than.rs b/tests/ui/const-generics/generic_const_exprs/less_than.rs
index 2e9af1bf4..2e9af1bf4 100644
--- a/src/test/ui/const-generics/generic_const_exprs/less_than.rs
+++ b/tests/ui/const-generics/generic_const_exprs/less_than.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/let-bindings.rs b/tests/ui/const-generics/generic_const_exprs/let-bindings.rs
index cd5d76dd9..cd5d76dd9 100644
--- a/src/test/ui/const-generics/generic_const_exprs/let-bindings.rs
+++ b/tests/ui/const-generics/generic_const_exprs/let-bindings.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr b/tests/ui/const-generics/generic_const_exprs/let-bindings.stderr
index 5ebb4c399..823a4f8a1 100644
--- a/src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/let-bindings.stderr
@@ -2,7 +2,7 @@ error: overly complex generic constant
--> $DIR/let-bindings.rs:6:68
|
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
- | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
@@ -11,7 +11,7 @@ error: overly complex generic constant
--> $DIR/let-bindings.rs:6:35
|
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
- | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.rs b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.rs
index 2bd3c801f..2bd3c801f 100644
--- a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.rs
+++ b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.stderr b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr
index 7b41e39b7..7b41e39b7 100644
--- a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs
index 7e5022817..7e5022817 100644
--- a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs
+++ b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs
index 769e3ae68..769e3ae68 100644
--- a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs
+++ b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs
index 316887e5e..316887e5e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs
+++ b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs
index d45a6465b..d45a6465b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs
+++ b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/no_dependence.rs b/tests/ui/const-generics/generic_const_exprs/no_dependence.rs
index db8dc6ed4..db8dc6ed4 100644
--- a/src/test/ui/const-generics/generic_const_exprs/no_dependence.rs
+++ b/tests/ui/const-generics/generic_const_exprs/no_dependence.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.rs b/tests/ui/const-generics/generic_const_exprs/no_where_clause.rs
index 9c5de0317..9c5de0317 100644
--- a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.rs
+++ b/tests/ui/const-generics/generic_const_exprs/no_where_clause.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.stderr b/tests/ui/const-generics/generic_const_exprs/no_where_clause.stderr
index 3e5c2f5ca..3e5c2f5ca 100644
--- a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/no_where_clause.stderr
diff --git a/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.rs b/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.rs
new file mode 100644
index 000000000..1254b4435
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.rs
@@ -0,0 +1,16 @@
+// aux-build:anon_const_non_local.rs
+
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+extern crate anon_const_non_local;
+
+fn bar<const M: usize>()
+where
+ [(); M + 1]:,
+{
+ let _: anon_const_non_local::Foo<2> = anon_const_non_local::foo::<M>();
+ //~^ ERROR: mismatched types
+}
+
+fn main() {}
diff --git a/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.stderr b/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.stderr
new file mode 100644
index 000000000..3926c830a
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/non_local_anon_const_diagnostics.stderr
@@ -0,0 +1,12 @@
+error[E0308]: mismatched types
+ --> $DIR/non_local_anon_const_diagnostics.rs:12:43
+ |
+LL | let _: anon_const_non_local::Foo<2> = anon_const_non_local::foo::<M>();
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `2`, found `anon_const_non_local::::foo::{constant#0}`
+ |
+ = note: expected constant `2`
+ found constant `anon_const_non_local::::foo::{constant#0}`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.
diff --git a/src/test/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs
index b37b354ae..b37b354ae 100644
--- a/src/test/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs
+++ b/tests/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs
index 24d333aba..24d333aba 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr
index 4e1d71f15..4e1d71f15 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs
index 42c1cc507..42c1cc507 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr
index 440cf457e..440cf457e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs
index 79e9834b5..79e9834b5 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr
index 59e9fee1e..59e9fee1e 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-ok.rs
index f4c89f623..f4c89f623 100644
--- a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok.rs
+++ b/tests/ui/const-generics/generic_const_exprs/object-safety-ok.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.rs b/tests/ui/const-generics/generic_const_exprs/obligation-cause.rs
index e7c8e4f66..e7c8e4f66 100644
--- a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.rs
+++ b/tests/ui/const-generics/generic_const_exprs/obligation-cause.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.stderr b/tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr
index a253ec676..a253ec676 100644
--- a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/simple_fail.rs b/tests/ui/const-generics/generic_const_exprs/simple_fail.rs
index cae54df4c..cae54df4c 100644
--- a/src/test/ui/const-generics/generic_const_exprs/simple_fail.rs
+++ b/tests/ui/const-generics/generic_const_exprs/simple_fail.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr b/tests/ui/const-generics/generic_const_exprs/simple_fail.stderr
index a25fa56b7..a25fa56b7 100644
--- a/src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/simple_fail.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs b/tests/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs
index d6574a3aa..d6574a3aa 100644
--- a/src/test/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs
+++ b/tests/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs b/tests/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs
index d058b3638..d058b3638 100644
--- a/src/test/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs
+++ b/tests/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs
index c0404d35b..c0404d35b 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs
+++ b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr
index d18c7916f..d18c7916f 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr
diff --git a/src/test/ui/const-generics/generic_const_exprs/unop.rs b/tests/ui/const-generics/generic_const_exprs/unop.rs
index c12fef083..c12fef083 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unop.rs
+++ b/tests/ui/const-generics/generic_const_exprs/unop.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs b/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs
index 9580f8a7f..9580f8a7f 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs
+++ b/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/unused_expr.rs b/tests/ui/const-generics/generic_const_exprs/unused_expr.rs
index c1bf19e0f..c1bf19e0f 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unused_expr.rs
+++ b/tests/ui/const-generics/generic_const_exprs/unused_expr.rs
diff --git a/src/test/ui/const-generics/generic_const_exprs/unused_expr.stderr b/tests/ui/const-generics/generic_const_exprs/unused_expr.stderr
index df73acf53..265a3b9d2 100644
--- a/src/test/ui/const-generics/generic_const_exprs/unused_expr.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/unused_expr.stderr
@@ -2,7 +2,7 @@ error: overly complex generic constant
--> $DIR/unused_expr.rs:4:34
|
LL | fn add<const N: usize>() -> [u8; { N + 1; 5 }] {
- | ^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
@@ -11,7 +11,7 @@ error: overly complex generic constant
--> $DIR/unused_expr.rs:9:34
|
LL | fn div<const N: usize>() -> [u8; { N / 1; 5 }] {
- | ^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
@@ -20,7 +20,7 @@ error: overly complex generic constant
--> $DIR/unused_expr.rs:16:38
|
LL | fn fn_call<const N: usize>() -> [u8; { foo(N); 5 }] {
- | ^^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/ice-68875.rs b/tests/ui/const-generics/ice-68875.rs
index 2ef7cfdbe..2ef7cfdbe 100644
--- a/src/test/ui/const-generics/ice-68875.rs
+++ b/tests/ui/const-generics/ice-68875.rs
diff --git a/src/test/ui/const-generics/ice-68875.stderr b/tests/ui/const-generics/ice-68875.stderr
index 1db62c57f..1db62c57f 100644
--- a/src/test/ui/const-generics/ice-68875.stderr
+++ b/tests/ui/const-generics/ice-68875.stderr
diff --git a/src/test/ui/const-generics/ice-const-generic-function-return-ty.rs b/tests/ui/const-generics/ice-const-generic-function-return-ty.rs
index 2bf628af8..2bf628af8 100644
--- a/src/test/ui/const-generics/ice-const-generic-function-return-ty.rs
+++ b/tests/ui/const-generics/ice-const-generic-function-return-ty.rs
diff --git a/src/test/ui/const-generics/ice-const-generic-function-return-ty.stderr b/tests/ui/const-generics/ice-const-generic-function-return-ty.stderr
index a72f5800a..a72f5800a 100644
--- a/src/test/ui/const-generics/ice-const-generic-function-return-ty.stderr
+++ b/tests/ui/const-generics/ice-const-generic-function-return-ty.stderr
diff --git a/src/test/ui/const-generics/impl-const-generic-struct.rs b/tests/ui/const-generics/impl-const-generic-struct.rs
index 7eb2c6a51..7eb2c6a51 100644
--- a/src/test/ui/const-generics/impl-const-generic-struct.rs
+++ b/tests/ui/const-generics/impl-const-generic-struct.rs
diff --git a/tests/ui/const-generics/incorrect-number-of-const-args.rs b/tests/ui/const-generics/incorrect-number-of-const-args.rs
new file mode 100644
index 000000000..8660cb2fb
--- /dev/null
+++ b/tests/ui/const-generics/incorrect-number-of-const-args.rs
@@ -0,0 +1,11 @@
+fn foo<const X: usize, const Y: usize>() -> usize {
+ 0
+}
+
+fn main() {
+ foo::<0>();
+ //~^ ERROR function takes 2
+
+ foo::<0, 0, 0>();
+ //~^ ERROR function takes 2
+}
diff --git a/src/test/ui/const-generics/incorrect-number-of-const-args.stderr b/tests/ui/const-generics/incorrect-number-of-const-args.stderr
index a845454f7..a845454f7 100644
--- a/src/test/ui/const-generics/incorrect-number-of-const-args.stderr
+++ b/tests/ui/const-generics/incorrect-number-of-const-args.stderr
diff --git a/src/test/ui/const-generics/infer/cannot-infer-const-args.rs b/tests/ui/const-generics/infer/cannot-infer-const-args.rs
index f85a72910..f85a72910 100644
--- a/src/test/ui/const-generics/infer/cannot-infer-const-args.rs
+++ b/tests/ui/const-generics/infer/cannot-infer-const-args.rs
diff --git a/src/test/ui/const-generics/infer/cannot-infer-const-args.stderr b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
index 93e45a88a..93e45a88a 100644
--- a/src/test/ui/const-generics/infer/cannot-infer-const-args.stderr
+++ b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
diff --git a/src/test/ui/const-generics/infer/issue-77092.rs b/tests/ui/const-generics/infer/issue-77092.rs
index fcf7d3282..fcf7d3282 100644
--- a/src/test/ui/const-generics/infer/issue-77092.rs
+++ b/tests/ui/const-generics/infer/issue-77092.rs
diff --git a/src/test/ui/const-generics/infer/issue-77092.stderr b/tests/ui/const-generics/infer/issue-77092.stderr
index 1682b26ac..1682b26ac 100644
--- a/src/test/ui/const-generics/infer/issue-77092.stderr
+++ b/tests/ui/const-generics/infer/issue-77092.stderr
diff --git a/src/test/ui/const-generics/infer/method-chain.rs b/tests/ui/const-generics/infer/method-chain.rs
index 0c5eed489..0c5eed489 100644
--- a/src/test/ui/const-generics/infer/method-chain.rs
+++ b/tests/ui/const-generics/infer/method-chain.rs
diff --git a/src/test/ui/const-generics/infer/method-chain.stderr b/tests/ui/const-generics/infer/method-chain.stderr
index ff6da535b..ff6da535b 100644
--- a/src/test/ui/const-generics/infer/method-chain.stderr
+++ b/tests/ui/const-generics/infer/method-chain.stderr
diff --git a/src/test/ui/const-generics/infer/one-param-uninferred.rs b/tests/ui/const-generics/infer/one-param-uninferred.rs
index d6018650f..d6018650f 100644
--- a/src/test/ui/const-generics/infer/one-param-uninferred.rs
+++ b/tests/ui/const-generics/infer/one-param-uninferred.rs
diff --git a/src/test/ui/const-generics/infer/one-param-uninferred.stderr b/tests/ui/const-generics/infer/one-param-uninferred.stderr
index cf70c2181..cf70c2181 100644
--- a/src/test/ui/const-generics/infer/one-param-uninferred.stderr
+++ b/tests/ui/const-generics/infer/one-param-uninferred.stderr
diff --git a/src/test/ui/const-generics/infer/uninferred-consts.rs b/tests/ui/const-generics/infer/uninferred-consts.rs
index 657f4b513..657f4b513 100644
--- a/src/test/ui/const-generics/infer/uninferred-consts.rs
+++ b/tests/ui/const-generics/infer/uninferred-consts.rs
diff --git a/src/test/ui/const-generics/infer/uninferred-consts.stderr b/tests/ui/const-generics/infer/uninferred-consts.stderr
index 3980ecea8..3980ecea8 100644
--- a/src/test/ui/const-generics/infer/uninferred-consts.stderr
+++ b/tests/ui/const-generics/infer/uninferred-consts.stderr
diff --git a/src/test/ui/const-generics/infer_arg_from_pat.rs b/tests/ui/const-generics/infer_arg_from_pat.rs
index 10317a1b9..10317a1b9 100644
--- a/src/test/ui/const-generics/infer_arg_from_pat.rs
+++ b/tests/ui/const-generics/infer_arg_from_pat.rs
diff --git a/src/test/ui/const-generics/infer_arr_len_from_pat.rs b/tests/ui/const-generics/infer_arr_len_from_pat.rs
index 40f6f5b8d..40f6f5b8d 100644
--- a/src/test/ui/const-generics/infer_arr_len_from_pat.rs
+++ b/tests/ui/const-generics/infer_arr_len_from_pat.rs
diff --git a/src/test/ui/const-generics/inhabited-assoc-ty-ice-1.rs b/tests/ui/const-generics/inhabited-assoc-ty-ice-1.rs
index b385406b0..b385406b0 100644
--- a/src/test/ui/const-generics/inhabited-assoc-ty-ice-1.rs
+++ b/tests/ui/const-generics/inhabited-assoc-ty-ice-1.rs
diff --git a/src/test/ui/const-generics/inhabited-assoc-ty-ice-2.rs b/tests/ui/const-generics/inhabited-assoc-ty-ice-2.rs
index 216d29c7c..216d29c7c 100644
--- a/src/test/ui/const-generics/inhabited-assoc-ty-ice-2.rs
+++ b/tests/ui/const-generics/inhabited-assoc-ty-ice-2.rs
diff --git a/src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs b/tests/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs
index 2b8731ba7..2b8731ba7 100644
--- a/src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs
+++ b/tests/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs
diff --git a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr
index b8a1027c9..b8a1027c9 100644
--- a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr
+++ b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr
diff --git a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.rs
index 147a00cb2..147a00cb2 100644
--- a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs
+++ b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.rs
diff --git a/src/test/ui/const-generics/invalid-const-arg-for-type-param.rs b/tests/ui/const-generics/invalid-const-arg-for-type-param.rs
index 7d4dc98f3..7d4dc98f3 100644
--- a/src/test/ui/const-generics/invalid-const-arg-for-type-param.rs
+++ b/tests/ui/const-generics/invalid-const-arg-for-type-param.rs
diff --git a/src/test/ui/const-generics/invalid-const-arg-for-type-param.stderr b/tests/ui/const-generics/invalid-const-arg-for-type-param.stderr
index d955b4f96..8c76ca690 100644
--- a/src/test/ui/const-generics/invalid-const-arg-for-type-param.stderr
+++ b/tests/ui/const-generics/invalid-const-arg-for-type-param.stderr
@@ -4,11 +4,6 @@ error[E0107]: this associated function takes 0 generic arguments but 1 generic a
LL | let _: u32 = 5i32.try_into::<32>().unwrap();
| ^^^^^^^^ expected 0 generic arguments
|
-note: associated function defined here, with 0 generic parameters
- --> $SRC_DIR/core/src/convert/mod.rs:LL:COL
- |
-LL | fn try_into(self) -> Result<T, Self::Error>;
- | ^^^^^^^^
help: consider moving this generic argument to the `TryInto` trait, which takes up to 1 argument
|
LL | let _: u32 = TryInto::<32>::try_into(5i32).unwrap();
diff --git a/src/test/ui/const-generics/invalid-constant-in-args.rs b/tests/ui/const-generics/invalid-constant-in-args.rs
index 7419d4a25..7419d4a25 100644
--- a/src/test/ui/const-generics/invalid-constant-in-args.rs
+++ b/tests/ui/const-generics/invalid-constant-in-args.rs
diff --git a/tests/ui/const-generics/invalid-constant-in-args.stderr b/tests/ui/const-generics/invalid-constant-in-args.stderr
new file mode 100644
index 000000000..993b63518
--- /dev/null
+++ b/tests/ui/const-generics/invalid-constant-in-args.stderr
@@ -0,0 +1,11 @@
+error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
+ --> $DIR/invalid-constant-in-args.rs:4:12
+ |
+LL | let _: Cell<&str, "a"> = Cell::new("");
+ | ^^^^ --- help: remove this generic argument
+ | |
+ | expected 1 generic argument
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0107`.
diff --git a/src/test/ui/const-generics/invalid-enum.rs b/tests/ui/const-generics/invalid-enum.rs
index cb6d05349..cb6d05349 100644
--- a/src/test/ui/const-generics/invalid-enum.rs
+++ b/tests/ui/const-generics/invalid-enum.rs
diff --git a/src/test/ui/const-generics/invalid-enum.stderr b/tests/ui/const-generics/invalid-enum.stderr
index 0d3643f6f..0d3643f6f 100644
--- a/src/test/ui/const-generics/invalid-enum.stderr
+++ b/tests/ui/const-generics/invalid-enum.stderr
diff --git a/src/test/ui/const-generics/invariant.rs b/tests/ui/const-generics/invariant.rs
index 39d658be6..39d658be6 100644
--- a/src/test/ui/const-generics/invariant.rs
+++ b/tests/ui/const-generics/invariant.rs
diff --git a/src/test/ui/const-generics/invariant.stderr b/tests/ui/const-generics/invariant.stderr
index aabe4c93b..aabe4c93b 100644
--- a/src/test/ui/const-generics/invariant.stderr
+++ b/tests/ui/const-generics/invariant.stderr
diff --git a/src/test/ui/const-generics/issue-102124.rs b/tests/ui/const-generics/issue-102124.rs
index a28f198e9..a28f198e9 100644
--- a/src/test/ui/const-generics/issue-102124.rs
+++ b/tests/ui/const-generics/issue-102124.rs
diff --git a/tests/ui/const-generics/issue-105689.rs b/tests/ui/const-generics/issue-105689.rs
new file mode 100644
index 000000000..4237b3cad
--- /dev/null
+++ b/tests/ui/const-generics/issue-105689.rs
@@ -0,0 +1,14 @@
+// check-pass
+// edition:2021
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+#[allow(unused)]
+async fn foo<'a>() {
+ let _data = &mut [0u8; { 1 + 4 }];
+ bar().await
+}
+
+async fn bar() {}
+
+fn main() {}
diff --git a/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs b/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs
new file mode 100644
index 000000000..8363e5af4
--- /dev/null
+++ b/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs
@@ -0,0 +1,12 @@
+// check-pass
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+#[derive(Clone)]
+struct Bar<const A: usize, const B: usize>
+where
+ [(); A as usize]:,
+ [(); B as usize]:,
+{}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/issue-46511.rs b/tests/ui/const-generics/issue-46511.rs
index 71c50e2f3..71c50e2f3 100644
--- a/src/test/ui/const-generics/issue-46511.rs
+++ b/tests/ui/const-generics/issue-46511.rs
diff --git a/src/test/ui/const-generics/issue-46511.stderr b/tests/ui/const-generics/issue-46511.stderr
index b21afa56d..b21afa56d 100644
--- a/src/test/ui/const-generics/issue-46511.stderr
+++ b/tests/ui/const-generics/issue-46511.stderr
diff --git a/src/test/ui/const-generics/issue-66451.rs b/tests/ui/const-generics/issue-66451.rs
index 3335f7d59..3335f7d59 100644
--- a/src/test/ui/const-generics/issue-66451.rs
+++ b/tests/ui/const-generics/issue-66451.rs
diff --git a/src/test/ui/const-generics/issue-66451.stderr b/tests/ui/const-generics/issue-66451.stderr
index e0cb0b661..e0cb0b661 100644
--- a/src/test/ui/const-generics/issue-66451.stderr
+++ b/tests/ui/const-generics/issue-66451.stderr
diff --git a/src/test/ui/const-generics/issue-70408.rs b/tests/ui/const-generics/issue-70408.rs
index f7557cb49..f7557cb49 100644
--- a/src/test/ui/const-generics/issue-70408.rs
+++ b/tests/ui/const-generics/issue-70408.rs
diff --git a/src/test/ui/const-generics/issue-80471.rs b/tests/ui/const-generics/issue-80471.rs
index d0af8a5ea..d0af8a5ea 100644
--- a/src/test/ui/const-generics/issue-80471.rs
+++ b/tests/ui/const-generics/issue-80471.rs
diff --git a/src/test/ui/const-generics/issue-80471.stderr b/tests/ui/const-generics/issue-80471.stderr
index b89706710..b89706710 100644
--- a/src/test/ui/const-generics/issue-80471.stderr
+++ b/tests/ui/const-generics/issue-80471.stderr
diff --git a/src/test/ui/const-generics/issue-93647.rs b/tests/ui/const-generics/issue-93647.rs
index 806540e17..806540e17 100644
--- a/src/test/ui/const-generics/issue-93647.rs
+++ b/tests/ui/const-generics/issue-93647.rs
diff --git a/src/test/ui/const-generics/issue-93647.stderr b/tests/ui/const-generics/issue-93647.stderr
index e2048ecd6..18370eea5 100644
--- a/src/test/ui/const-generics/issue-93647.stderr
+++ b/tests/ui/const-generics/issue-93647.stderr
@@ -6,6 +6,7 @@ LL | (||1usize)()
|
= note: closures need an RFC before allowed to be called in constants
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
+ = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
error: aborting due to previous error
diff --git a/src/test/ui/const-generics/issue-97007.rs b/tests/ui/const-generics/issue-97007.rs
index 7036834c4..7036834c4 100644
--- a/src/test/ui/const-generics/issue-97007.rs
+++ b/tests/ui/const-generics/issue-97007.rs
diff --git a/src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs b/tests/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
index 6a10ee267..6a10ee267 100644
--- a/src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
+++ b/tests/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
diff --git a/src/test/ui/const-generics/issues/auxiliary/impl-const.rs b/tests/ui/const-generics/issues/auxiliary/impl-const.rs
index de3a40860..de3a40860 100644
--- a/src/test/ui/const-generics/issues/auxiliary/impl-const.rs
+++ b/tests/ui/const-generics/issues/auxiliary/impl-const.rs
diff --git a/src/test/ui/const-generics/issues/issue-100313.rs b/tests/ui/const-generics/issues/issue-100313.rs
index 4e9d3626a..4e9d3626a 100644
--- a/src/test/ui/const-generics/issues/issue-100313.rs
+++ b/tests/ui/const-generics/issues/issue-100313.rs
diff --git a/src/test/ui/const-generics/issues/issue-100313.stderr b/tests/ui/const-generics/issues/issue-100313.stderr
index d4b486376..d4b486376 100644
--- a/src/test/ui/const-generics/issues/issue-100313.stderr
+++ b/tests/ui/const-generics/issues/issue-100313.stderr
diff --git a/tests/ui/const-generics/issues/issue-105037.rs b/tests/ui/const-generics/issues/issue-105037.rs
new file mode 100644
index 000000000..f7d239499
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-105037.rs
@@ -0,0 +1,35 @@
+// run-pass
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+#![allow(dead_code)]
+
+trait Table<const D: usize>: Sync {
+ const COLUMNS: usize;
+}
+
+struct Table1<const D: usize>;
+impl<const D: usize> Table<D> for Table1<D> {
+ const COLUMNS: usize = 123;
+}
+
+struct Table2<const D: usize>;
+impl<const D: usize> Table<D> for Table2<D> {
+ const COLUMNS: usize = 456;
+}
+
+fn process_table<T: Table<D>, const D: usize>(_table: T)
+where
+ [(); T::COLUMNS]:,
+{
+}
+
+fn process_all_tables<const D: usize>()
+where
+ [(); Table2::<D>::COLUMNS]:,
+ [(); Table1::<D>::COLUMNS]:,
+{
+ process_table(Table1::<D>);
+ process_table(Table2::<D>);
+}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/issues/issue-56445-1.full.stderr b/tests/ui/const-generics/issues/issue-56445-1.full.stderr
index 179643a75..179643a75 100644
--- a/src/test/ui/const-generics/issues/issue-56445-1.full.stderr
+++ b/tests/ui/const-generics/issues/issue-56445-1.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-56445-1.min.stderr b/tests/ui/const-generics/issues/issue-56445-1.min.stderr
index 43a5df117..43a5df117 100644
--- a/src/test/ui/const-generics/issues/issue-56445-1.min.stderr
+++ b/tests/ui/const-generics/issues/issue-56445-1.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-56445-1.rs b/tests/ui/const-generics/issues/issue-56445-1.rs
index 13eb2ea9f..13eb2ea9f 100644
--- a/src/test/ui/const-generics/issues/issue-56445-1.rs
+++ b/tests/ui/const-generics/issues/issue-56445-1.rs
diff --git a/src/test/ui/const-generics/issues/issue-56445-2.rs b/tests/ui/const-generics/issues/issue-56445-2.rs
index e078c8487..e078c8487 100644
--- a/src/test/ui/const-generics/issues/issue-56445-2.rs
+++ b/tests/ui/const-generics/issues/issue-56445-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-56445-2.stderr b/tests/ui/const-generics/issues/issue-56445-2.stderr
index 770c80cbb..770c80cbb 100644
--- a/src/test/ui/const-generics/issues/issue-56445-2.stderr
+++ b/tests/ui/const-generics/issues/issue-56445-2.stderr
diff --git a/src/test/ui/const-generics/issues/issue-56445-3.rs b/tests/ui/const-generics/issues/issue-56445-3.rs
index c29df1458..c29df1458 100644
--- a/src/test/ui/const-generics/issues/issue-56445-3.rs
+++ b/tests/ui/const-generics/issues/issue-56445-3.rs
diff --git a/src/test/ui/const-generics/issues/issue-56445-3.stderr b/tests/ui/const-generics/issues/issue-56445-3.stderr
index f1c49eecf..f1c49eecf 100644
--- a/src/test/ui/const-generics/issues/issue-56445-3.stderr
+++ b/tests/ui/const-generics/issues/issue-56445-3.stderr
diff --git a/src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs b/tests/ui/const-generics/issues/issue-60818-struct-constructors.rs
index 0066490df..0066490df 100644
--- a/src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs
+++ b/tests/ui/const-generics/issues/issue-60818-struct-constructors.rs
diff --git a/src/test/ui/const-generics/issues/issue-61336-1.rs b/tests/ui/const-generics/issues/issue-61336-1.rs
index beb37e63b..beb37e63b 100644
--- a/src/test/ui/const-generics/issues/issue-61336-1.rs
+++ b/tests/ui/const-generics/issues/issue-61336-1.rs
diff --git a/src/test/ui/const-generics/issues/issue-61336-2.rs b/tests/ui/const-generics/issues/issue-61336-2.rs
index b7cd29f89..b7cd29f89 100644
--- a/src/test/ui/const-generics/issues/issue-61336-2.rs
+++ b/tests/ui/const-generics/issues/issue-61336-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-61336-2.stderr b/tests/ui/const-generics/issues/issue-61336-2.stderr
index 5bb356696..5bb356696 100644
--- a/src/test/ui/const-generics/issues/issue-61336-2.stderr
+++ b/tests/ui/const-generics/issues/issue-61336-2.stderr
diff --git a/src/test/ui/const-generics/issues/issue-61336.rs b/tests/ui/const-generics/issues/issue-61336.rs
index 80be1d8e5..80be1d8e5 100644
--- a/src/test/ui/const-generics/issues/issue-61336.rs
+++ b/tests/ui/const-generics/issues/issue-61336.rs
diff --git a/src/test/ui/const-generics/issues/issue-61336.stderr b/tests/ui/const-generics/issues/issue-61336.stderr
index 8d9e545b4..8d9e545b4 100644
--- a/src/test/ui/const-generics/issues/issue-61336.stderr
+++ b/tests/ui/const-generics/issues/issue-61336.stderr
diff --git a/src/test/ui/const-generics/issues/issue-61422.rs b/tests/ui/const-generics/issues/issue-61422.rs
index 0b9cf40d8..0b9cf40d8 100644
--- a/src/test/ui/const-generics/issues/issue-61422.rs
+++ b/tests/ui/const-generics/issues/issue-61422.rs
diff --git a/src/test/ui/const-generics/issues/issue-61432.rs b/tests/ui/const-generics/issues/issue-61432.rs
index 6192af82a..6192af82a 100644
--- a/src/test/ui/const-generics/issues/issue-61432.rs
+++ b/tests/ui/const-generics/issues/issue-61432.rs
diff --git a/src/test/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs b/tests/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs
index fa76aeae9..fa76aeae9 100644
--- a/src/test/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs
+++ b/tests/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs
diff --git a/src/test/ui/const-generics/issues/issue-62878.full.stderr b/tests/ui/const-generics/issues/issue-62878.full.stderr
index 3a2b291d7..3a2b291d7 100644
--- a/src/test/ui/const-generics/issues/issue-62878.full.stderr
+++ b/tests/ui/const-generics/issues/issue-62878.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-62878.min.stderr b/tests/ui/const-generics/issues/issue-62878.min.stderr
index af029a651..5a721720d 100644
--- a/src/test/ui/const-generics/issues/issue-62878.min.stderr
+++ b/tests/ui/const-generics/issues/issue-62878.min.stderr
@@ -4,7 +4,7 @@ error[E0770]: the type of const parameters must not depend on other generic para
LL | fn foo<const N: usize, const A: [u8; N]>() {}
| ^ the type must not depend on the parameter `N`
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; N]` is forbidden as the type of a const generic parameter
--> $DIR/issue-62878.rs:5:33
|
LL | fn foo<const N: usize, const A: [u8; N]>() {}
diff --git a/src/test/ui/const-generics/issues/issue-62878.rs b/tests/ui/const-generics/issues/issue-62878.rs
index 578ce765b..4c08a484e 100644
--- a/src/test/ui/const-generics/issues/issue-62878.rs
+++ b/tests/ui/const-generics/issues/issue-62878.rs
@@ -4,7 +4,7 @@
fn foo<const N: usize, const A: [u8; N]>() {}
//~^ ERROR the type of const parameters must not
-//[min]~| ERROR `[u8; _]` is forbidden as the type of a const generic parameter
+//[min]~| ERROR `[u8; N]` is forbidden as the type of a const generic parameter
fn main() {
foo::<_, { [1] }>();
diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr
index 16fabd1e8..16fabd1e8 100644
--- a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr
+++ b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr
index 9f6c7ccf3..9f6c7ccf3 100644
--- a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr
+++ b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.rs
index 116c3fcfb..116c3fcfb 100644
--- a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs
+++ b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.rs
diff --git a/src/test/ui/const-generics/issues/issue-64519.rs b/tests/ui/const-generics/issues/issue-64519.rs
index 969289b26..969289b26 100644
--- a/src/test/ui/const-generics/issues/issue-64519.rs
+++ b/tests/ui/const-generics/issues/issue-64519.rs
diff --git a/src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs b/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
index 091419f0c..091419f0c 100644
--- a/src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
+++ b/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
diff --git a/src/test/ui/const-generics/issues/issue-66906.rs b/tests/ui/const-generics/issues/issue-66906.rs
index a0b3f9122..a0b3f9122 100644
--- a/src/test/ui/const-generics/issues/issue-66906.rs
+++ b/tests/ui/const-generics/issues/issue-66906.rs
diff --git a/src/test/ui/const-generics/issues/issue-67185-1.rs b/tests/ui/const-generics/issues/issue-67185-1.rs
index 69425b25e..69425b25e 100644
--- a/src/test/ui/const-generics/issues/issue-67185-1.rs
+++ b/tests/ui/const-generics/issues/issue-67185-1.rs
diff --git a/src/test/ui/const-generics/issues/issue-67185-2.rs b/tests/ui/const-generics/issues/issue-67185-2.rs
index 18bb6f6bc..18bb6f6bc 100644
--- a/src/test/ui/const-generics/issues/issue-67185-2.rs
+++ b/tests/ui/const-generics/issues/issue-67185-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-67185-2.stderr b/tests/ui/const-generics/issues/issue-67185-2.stderr
index c7be8e14a..c7be8e14a 100644
--- a/src/test/ui/const-generics/issues/issue-67185-2.stderr
+++ b/tests/ui/const-generics/issues/issue-67185-2.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67375.full.stderr b/tests/ui/const-generics/issues/issue-67375.full.stderr
index 0cf69879a..0cf69879a 100644
--- a/src/test/ui/const-generics/issues/issue-67375.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67375.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67375.min.stderr b/tests/ui/const-generics/issues/issue-67375.min.stderr
index 5256d96c8..5256d96c8 100644
--- a/src/test/ui/const-generics/issues/issue-67375.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67375.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67375.rs b/tests/ui/const-generics/issues/issue-67375.rs
index 8b4b276ba..8b4b276ba 100644
--- a/src/test/ui/const-generics/issues/issue-67375.rs
+++ b/tests/ui/const-generics/issues/issue-67375.rs
diff --git a/src/test/ui/const-generics/issues/issue-67739.full.stderr b/tests/ui/const-generics/issues/issue-67739.full.stderr
index f1a426c3c..f1a426c3c 100644
--- a/src/test/ui/const-generics/issues/issue-67739.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67739.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67739.min.stderr b/tests/ui/const-generics/issues/issue-67739.min.stderr
index dcbe5b94a..dcbe5b94a 100644
--- a/src/test/ui/const-generics/issues/issue-67739.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67739.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67739.rs b/tests/ui/const-generics/issues/issue-67739.rs
index de0eb7f50..de0eb7f50 100644
--- a/src/test/ui/const-generics/issues/issue-67739.rs
+++ b/tests/ui/const-generics/issues/issue-67739.rs
diff --git a/src/test/ui/const-generics/issues/issue-67945-1.full.stderr b/tests/ui/const-generics/issues/issue-67945-1.full.stderr
index 8e18fcdff..8e18fcdff 100644
--- a/src/test/ui/const-generics/issues/issue-67945-1.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-1.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67945-1.min.stderr b/tests/ui/const-generics/issues/issue-67945-1.min.stderr
index eee04eb75..eee04eb75 100644
--- a/src/test/ui/const-generics/issues/issue-67945-1.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-1.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67945-1.rs b/tests/ui/const-generics/issues/issue-67945-1.rs
index 99f88bc8e..99f88bc8e 100644
--- a/src/test/ui/const-generics/issues/issue-67945-1.rs
+++ b/tests/ui/const-generics/issues/issue-67945-1.rs
diff --git a/src/test/ui/const-generics/issues/issue-67945-2.full.stderr b/tests/ui/const-generics/issues/issue-67945-2.full.stderr
index cce85772a..47429b761 100644
--- a/src/test/ui/const-generics/issues/issue-67945-2.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-2.full.stderr
@@ -8,7 +8,7 @@ LL | | let x: Option<Box<Self>> = None;
LL | |
LL | | 0
LL | | }],
- | |_____^ blocks are not supported in generic constant
+ | |_____^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/issues/issue-67945-2.min.stderr b/tests/ui/const-generics/issues/issue-67945-2.min.stderr
index 6e07af1e6..6e07af1e6 100644
--- a/src/test/ui/const-generics/issues/issue-67945-2.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-2.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67945-2.rs b/tests/ui/const-generics/issues/issue-67945-2.rs
index cbb4e14ec..cbb4e14ec 100644
--- a/src/test/ui/const-generics/issues/issue-67945-2.rs
+++ b/tests/ui/const-generics/issues/issue-67945-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-67945-3.full.stderr b/tests/ui/const-generics/issues/issue-67945-3.full.stderr
index d3d9452d3..98f9f8397 100644
--- a/src/test/ui/const-generics/issues/issue-67945-3.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-3.full.stderr
@@ -7,7 +7,7 @@ LL | | let x: Option<S> = None;
LL | |
LL | | 0
LL | | }],
- | |_____^ blocks are not supported in generic constant
+ | |_____^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/issues/issue-67945-3.min.stderr b/tests/ui/const-generics/issues/issue-67945-3.min.stderr
index 8e6b4b204..8e6b4b204 100644
--- a/src/test/ui/const-generics/issues/issue-67945-3.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-3.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67945-3.rs b/tests/ui/const-generics/issues/issue-67945-3.rs
index fd8a393ef..fd8a393ef 100644
--- a/src/test/ui/const-generics/issues/issue-67945-3.rs
+++ b/tests/ui/const-generics/issues/issue-67945-3.rs
diff --git a/src/test/ui/const-generics/issues/issue-67945-4.full.stderr b/tests/ui/const-generics/issues/issue-67945-4.full.stderr
index 9604eb35d..c03d40a7b 100644
--- a/src/test/ui/const-generics/issues/issue-67945-4.full.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-4.full.stderr
@@ -7,7 +7,7 @@ LL | | let x: Option<Box<S>> = None;
LL | |
LL | | 0
LL | | }],
- | |_____^ blocks are not supported in generic constant
+ | |_____^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/issues/issue-67945-4.min.stderr b/tests/ui/const-generics/issues/issue-67945-4.min.stderr
index f9520872d..f9520872d 100644
--- a/src/test/ui/const-generics/issues/issue-67945-4.min.stderr
+++ b/tests/ui/const-generics/issues/issue-67945-4.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-67945-4.rs b/tests/ui/const-generics/issues/issue-67945-4.rs
index 9a27bf09f..9a27bf09f 100644
--- a/src/test/ui/const-generics/issues/issue-67945-4.rs
+++ b/tests/ui/const-generics/issues/issue-67945-4.rs
diff --git a/src/test/ui/const-generics/issues/issue-68104-print-stack-overflow.rs b/tests/ui/const-generics/issues/issue-68104-print-stack-overflow.rs
index ad5710baa..ad5710baa 100644
--- a/src/test/ui/const-generics/issues/issue-68104-print-stack-overflow.rs
+++ b/tests/ui/const-generics/issues/issue-68104-print-stack-overflow.rs
diff --git a/src/test/ui/const-generics/issues/issue-68366.full.stderr b/tests/ui/const-generics/issues/issue-68366.full.stderr
index ca9eb801d..ca9eb801d 100644
--- a/src/test/ui/const-generics/issues/issue-68366.full.stderr
+++ b/tests/ui/const-generics/issues/issue-68366.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-68366.min.stderr b/tests/ui/const-generics/issues/issue-68366.min.stderr
index 3740ced90..3740ced90 100644
--- a/src/test/ui/const-generics/issues/issue-68366.min.stderr
+++ b/tests/ui/const-generics/issues/issue-68366.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-68366.rs b/tests/ui/const-generics/issues/issue-68366.rs
index 4c2741ab4..4c2741ab4 100644
--- a/src/test/ui/const-generics/issues/issue-68366.rs
+++ b/tests/ui/const-generics/issues/issue-68366.rs
diff --git a/src/test/ui/const-generics/issues/issue-68596.rs b/tests/ui/const-generics/issues/issue-68596.rs
index c3c9141e4..c3c9141e4 100644
--- a/src/test/ui/const-generics/issues/issue-68596.rs
+++ b/tests/ui/const-generics/issues/issue-68596.rs
diff --git a/src/test/ui/const-generics/issues/issue-68615-adt.min.stderr b/tests/ui/const-generics/issues/issue-68615-adt.min.stderr
index df04c4896..df04c4896 100644
--- a/src/test/ui/const-generics/issues/issue-68615-adt.min.stderr
+++ b/tests/ui/const-generics/issues/issue-68615-adt.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-68615-adt.rs b/tests/ui/const-generics/issues/issue-68615-adt.rs
index 3ef1ad45e..3ef1ad45e 100644
--- a/src/test/ui/const-generics/issues/issue-68615-adt.rs
+++ b/tests/ui/const-generics/issues/issue-68615-adt.rs
diff --git a/src/test/ui/const-generics/issues/issue-68615-array.min.stderr b/tests/ui/const-generics/issues/issue-68615-array.min.stderr
index 1b4517087..1b4517087 100644
--- a/src/test/ui/const-generics/issues/issue-68615-array.min.stderr
+++ b/tests/ui/const-generics/issues/issue-68615-array.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-68615-array.rs b/tests/ui/const-generics/issues/issue-68615-array.rs
index 93477be41..93477be41 100644
--- a/src/test/ui/const-generics/issues/issue-68615-array.rs
+++ b/tests/ui/const-generics/issues/issue-68615-array.rs
diff --git a/src/test/ui/const-generics/issues/issue-69654-run-pass.rs b/tests/ui/const-generics/issues/issue-69654-run-pass.rs
index 63d7fde78..63d7fde78 100644
--- a/src/test/ui/const-generics/issues/issue-69654-run-pass.rs
+++ b/tests/ui/const-generics/issues/issue-69654-run-pass.rs
diff --git a/src/test/ui/const-generics/issues/issue-70125-1.rs b/tests/ui/const-generics/issues/issue-70125-1.rs
index 0027cd46a..0027cd46a 100644
--- a/src/test/ui/const-generics/issues/issue-70125-1.rs
+++ b/tests/ui/const-generics/issues/issue-70125-1.rs
diff --git a/src/test/ui/const-generics/issues/issue-70125-2.rs b/tests/ui/const-generics/issues/issue-70125-2.rs
index cfd5e784e..cfd5e784e 100644
--- a/src/test/ui/const-generics/issues/issue-70125-2.rs
+++ b/tests/ui/const-generics/issues/issue-70125-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-70167.rs b/tests/ui/const-generics/issues/issue-70167.rs
index 3961941f8..3961941f8 100644
--- a/src/test/ui/const-generics/issues/issue-70167.rs
+++ b/tests/ui/const-generics/issues/issue-70167.rs
diff --git a/src/test/ui/const-generics/issues/issue-70180-1-stalled_on.rs b/tests/ui/const-generics/issues/issue-70180-1-stalled_on.rs
index 2ec37cc3a..2ec37cc3a 100644
--- a/src/test/ui/const-generics/issues/issue-70180-1-stalled_on.rs
+++ b/tests/ui/const-generics/issues/issue-70180-1-stalled_on.rs
diff --git a/src/test/ui/const-generics/issues/issue-70180-2-stalled_on.rs b/tests/ui/const-generics/issues/issue-70180-2-stalled_on.rs
index 95e548428..95e548428 100644
--- a/src/test/ui/const-generics/issues/issue-70180-2-stalled_on.rs
+++ b/tests/ui/const-generics/issues/issue-70180-2-stalled_on.rs
diff --git a/src/test/ui/const-generics/issues/issue-70225.rs b/tests/ui/const-generics/issues/issue-70225.rs
index d458d7b2e..d458d7b2e 100644
--- a/src/test/ui/const-generics/issues/issue-70225.rs
+++ b/tests/ui/const-generics/issues/issue-70225.rs
diff --git a/src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs b/tests/ui/const-generics/issues/issue-70273-assoc-fn.rs
index a76488249..a76488249 100644
--- a/src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs
+++ b/tests/ui/const-generics/issues/issue-70273-assoc-fn.rs
diff --git a/src/test/ui/const-generics/issues/issue-71169.full.stderr b/tests/ui/const-generics/issues/issue-71169.full.stderr
index 1f5880f36..1f5880f36 100644
--- a/src/test/ui/const-generics/issues/issue-71169.full.stderr
+++ b/tests/ui/const-generics/issues/issue-71169.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71169.min.stderr b/tests/ui/const-generics/issues/issue-71169.min.stderr
index 87ed2d4f8..998b16a79 100644
--- a/src/test/ui/const-generics/issues/issue-71169.min.stderr
+++ b/tests/ui/const-generics/issues/issue-71169.min.stderr
@@ -4,7 +4,7 @@ error[E0770]: the type of const parameters must not depend on other generic para
LL | fn foo<const LEN: usize, const DATA: [u8; LEN]>() {}
| ^^^ the type must not depend on the parameter `LEN`
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; LEN]` is forbidden as the type of a const generic parameter
--> $DIR/issue-71169.rs:5:38
|
LL | fn foo<const LEN: usize, const DATA: [u8; LEN]>() {}
diff --git a/src/test/ui/const-generics/issues/issue-71169.rs b/tests/ui/const-generics/issues/issue-71169.rs
index 617149a84..e4ec6b073 100644
--- a/src/test/ui/const-generics/issues/issue-71169.rs
+++ b/tests/ui/const-generics/issues/issue-71169.rs
@@ -4,7 +4,7 @@
fn foo<const LEN: usize, const DATA: [u8; LEN]>() {}
//~^ ERROR the type of const parameters must not
-//[min]~^^ ERROR `[u8; _]` is forbidden as the type of a const generic parameter
+//[min]~^^ ERROR `[u8; LEN]` is forbidden as the type of a const generic parameter
fn main() {
const DATA: [u8; 4] = *b"ABCD";
foo::<4, DATA>();
diff --git a/src/test/ui/const-generics/issues/issue-71202.rs b/tests/ui/const-generics/issues/issue-71202.rs
index 57fd72b12..57fd72b12 100644
--- a/src/test/ui/const-generics/issues/issue-71202.rs
+++ b/tests/ui/const-generics/issues/issue-71202.rs
diff --git a/src/test/ui/const-generics/issues/issue-71202.stderr b/tests/ui/const-generics/issues/issue-71202.stderr
index 277540610..277540610 100644
--- a/src/test/ui/const-generics/issues/issue-71202.stderr
+++ b/tests/ui/const-generics/issues/issue-71202.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71381.full.stderr b/tests/ui/const-generics/issues/issue-71381.full.stderr
index e17cf96aa..e17cf96aa 100644
--- a/src/test/ui/const-generics/issues/issue-71381.full.stderr
+++ b/tests/ui/const-generics/issues/issue-71381.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71381.min.stderr b/tests/ui/const-generics/issues/issue-71381.min.stderr
index 3950317b3..3950317b3 100644
--- a/src/test/ui/const-generics/issues/issue-71381.min.stderr
+++ b/tests/ui/const-generics/issues/issue-71381.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71381.rs b/tests/ui/const-generics/issues/issue-71381.rs
index 66f819dbe..66f819dbe 100644
--- a/src/test/ui/const-generics/issues/issue-71381.rs
+++ b/tests/ui/const-generics/issues/issue-71381.rs
diff --git a/src/test/ui/const-generics/issues/issue-71382.full.stderr b/tests/ui/const-generics/issues/issue-71382.full.stderr
index ab2a4e64a..ab2a4e64a 100644
--- a/src/test/ui/const-generics/issues/issue-71382.full.stderr
+++ b/tests/ui/const-generics/issues/issue-71382.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71382.min.stderr b/tests/ui/const-generics/issues/issue-71382.min.stderr
index 715037bd5..715037bd5 100644
--- a/src/test/ui/const-generics/issues/issue-71382.min.stderr
+++ b/tests/ui/const-generics/issues/issue-71382.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71382.rs b/tests/ui/const-generics/issues/issue-71382.rs
index 4392d72e5..4392d72e5 100644
--- a/src/test/ui/const-generics/issues/issue-71382.rs
+++ b/tests/ui/const-generics/issues/issue-71382.rs
diff --git a/src/test/ui/const-generics/issues/issue-71547.rs b/tests/ui/const-generics/issues/issue-71547.rs
index 60776a1a9..60776a1a9 100644
--- a/src/test/ui/const-generics/issues/issue-71547.rs
+++ b/tests/ui/const-generics/issues/issue-71547.rs
diff --git a/src/test/ui/const-generics/issues/issue-71611.full.stderr b/tests/ui/const-generics/issues/issue-71611.full.stderr
index 656aa29e1..656aa29e1 100644
--- a/src/test/ui/const-generics/issues/issue-71611.full.stderr
+++ b/tests/ui/const-generics/issues/issue-71611.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71611.min.stderr b/tests/ui/const-generics/issues/issue-71611.min.stderr
index 01a85b745..01a85b745 100644
--- a/src/test/ui/const-generics/issues/issue-71611.min.stderr
+++ b/tests/ui/const-generics/issues/issue-71611.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-71611.rs b/tests/ui/const-generics/issues/issue-71611.rs
index fbb91ca18..fbb91ca18 100644
--- a/src/test/ui/const-generics/issues/issue-71611.rs
+++ b/tests/ui/const-generics/issues/issue-71611.rs
diff --git a/src/test/ui/const-generics/issues/issue-71986.rs b/tests/ui/const-generics/issues/issue-71986.rs
index 6f0a98ead..6f0a98ead 100644
--- a/src/test/ui/const-generics/issues/issue-71986.rs
+++ b/tests/ui/const-generics/issues/issue-71986.rs
diff --git a/src/test/ui/const-generics/issues/issue-72352.full.stderr b/tests/ui/const-generics/issues/issue-72352.full.stderr
index 92580b336..92580b336 100644
--- a/src/test/ui/const-generics/issues/issue-72352.full.stderr
+++ b/tests/ui/const-generics/issues/issue-72352.full.stderr
diff --git a/src/test/ui/const-generics/issues/issue-72352.min.stderr b/tests/ui/const-generics/issues/issue-72352.min.stderr
index eedd73c4d..eedd73c4d 100644
--- a/src/test/ui/const-generics/issues/issue-72352.min.stderr
+++ b/tests/ui/const-generics/issues/issue-72352.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-72352.rs b/tests/ui/const-generics/issues/issue-72352.rs
index 2fa1d7a53..2fa1d7a53 100644
--- a/src/test/ui/const-generics/issues/issue-72352.rs
+++ b/tests/ui/const-generics/issues/issue-72352.rs
diff --git a/src/test/ui/const-generics/issues/issue-72845.rs b/tests/ui/const-generics/issues/issue-72845.rs
index bea5dc8ba..bea5dc8ba 100644
--- a/src/test/ui/const-generics/issues/issue-72845.rs
+++ b/tests/ui/const-generics/issues/issue-72845.rs
diff --git a/src/test/ui/const-generics/issues/issue-72845.stderr b/tests/ui/const-generics/issues/issue-72845.stderr
index 631c8605f..631c8605f 100644
--- a/src/test/ui/const-generics/issues/issue-72845.stderr
+++ b/tests/ui/const-generics/issues/issue-72845.stderr
diff --git a/src/test/ui/const-generics/issues/issue-73120.rs b/tests/ui/const-generics/issues/issue-73120.rs
index 050dc9bde..050dc9bde 100644
--- a/src/test/ui/const-generics/issues/issue-73120.rs
+++ b/tests/ui/const-generics/issues/issue-73120.rs
diff --git a/src/test/ui/const-generics/issues/issue-73260.rs b/tests/ui/const-generics/issues/issue-73260.rs
index d762f9c8b..d762f9c8b 100644
--- a/src/test/ui/const-generics/issues/issue-73260.rs
+++ b/tests/ui/const-generics/issues/issue-73260.rs
diff --git a/src/test/ui/const-generics/issues/issue-73260.stderr b/tests/ui/const-generics/issues/issue-73260.stderr
index 7670032e5..7670032e5 100644
--- a/src/test/ui/const-generics/issues/issue-73260.stderr
+++ b/tests/ui/const-generics/issues/issue-73260.stderr
diff --git a/src/test/ui/const-generics/issues/issue-73491.min.stderr b/tests/ui/const-generics/issues/issue-73491.min.stderr
index f2b58e59f..f03354fc4 100644
--- a/src/test/ui/const-generics/issues/issue-73491.min.stderr
+++ b/tests/ui/const-generics/issues/issue-73491.min.stderr
@@ -1,4 +1,4 @@
-error: `[u32; _]` is forbidden as the type of a const generic parameter
+error: `[u32; LEN]` is forbidden as the type of a const generic parameter
--> $DIR/issue-73491.rs:8:19
|
LL | fn hoge<const IN: [u32; LEN]>() {}
diff --git a/tests/ui/const-generics/issues/issue-73491.rs b/tests/ui/const-generics/issues/issue-73491.rs
new file mode 100644
index 000000000..482dbb04d
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-73491.rs
@@ -0,0 +1,11 @@
+// [full] check-pass
+// revisions: full min
+#![cfg_attr(full, feature(adt_const_params))]
+#![cfg_attr(full, allow(incomplete_features))]
+
+const LEN: usize = 1024;
+
+fn hoge<const IN: [u32; LEN]>() {}
+//[min]~^ ERROR `[u32; LEN]` is forbidden as the type of a const generic parameter
+
+fn main() {}
diff --git a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr
index 0a7db6247..0a7db6247 100644
--- a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr
+++ b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs
index f0d604835..f0d604835 100644
--- a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs
+++ b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs
diff --git a/src/test/ui/const-generics/issues/issue-74101.min.stderr b/tests/ui/const-generics/issues/issue-74101.min.stderr
index 82ffb2332..134c24834 100644
--- a/src/test/ui/const-generics/issues/issue-74101.min.stderr
+++ b/tests/ui/const-generics/issues/issue-74101.min.stderr
@@ -1,4 +1,4 @@
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
--> $DIR/issue-74101.rs:6:18
|
LL | fn test<const N: [u8; 1 + 2]>() {}
@@ -7,7 +7,7 @@ LL | fn test<const N: [u8; 1 + 2]>() {}
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
--> $DIR/issue-74101.rs:9:21
|
LL | struct Foo<const N: [u8; 1 + 2]>;
diff --git a/tests/ui/const-generics/issues/issue-74101.rs b/tests/ui/const-generics/issues/issue-74101.rs
new file mode 100644
index 000000000..4c9b2d3c6
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-74101.rs
@@ -0,0 +1,12 @@
+// [full] check-pass
+// revisions: full min
+#![cfg_attr(full, feature(adt_const_params))]
+#![cfg_attr(full, allow(incomplete_features))]
+
+fn test<const N: [u8; 1 + 2]>() {}
+//[min]~^ ERROR `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
+
+struct Foo<const N: [u8; 1 + 2]>;
+//[min]~^ ERROR `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
+
+fn main() {}
diff --git a/src/test/ui/const-generics/issues/issue-74255.min.stderr b/tests/ui/const-generics/issues/issue-74255.min.stderr
index b462d8448..b462d8448 100644
--- a/src/test/ui/const-generics/issues/issue-74255.min.stderr
+++ b/tests/ui/const-generics/issues/issue-74255.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-74255.rs b/tests/ui/const-generics/issues/issue-74255.rs
index 0e523926f..0e523926f 100644
--- a/src/test/ui/const-generics/issues/issue-74255.rs
+++ b/tests/ui/const-generics/issues/issue-74255.rs
diff --git a/src/test/ui/const-generics/issues/issue-74906.rs b/tests/ui/const-generics/issues/issue-74906.rs
index cc1f2853f..cc1f2853f 100644
--- a/src/test/ui/const-generics/issues/issue-74906.rs
+++ b/tests/ui/const-generics/issues/issue-74906.rs
diff --git a/src/test/ui/const-generics/issues/issue-74950.min.stderr b/tests/ui/const-generics/issues/issue-74950.min.stderr
index 729ecc202..729ecc202 100644
--- a/src/test/ui/const-generics/issues/issue-74950.min.stderr
+++ b/tests/ui/const-generics/issues/issue-74950.min.stderr
diff --git a/src/test/ui/const-generics/issues/issue-74950.rs b/tests/ui/const-generics/issues/issue-74950.rs
index 3e1ca4735..3e1ca4735 100644
--- a/src/test/ui/const-generics/issues/issue-74950.rs
+++ b/tests/ui/const-generics/issues/issue-74950.rs
diff --git a/src/test/ui/const-generics/issues/issue-75047.min.stderr b/tests/ui/const-generics/issues/issue-75047.min.stderr
index 7798ae796..46af19ef3 100644
--- a/src/test/ui/const-generics/issues/issue-75047.min.stderr
+++ b/tests/ui/const-generics/issues/issue-75047.min.stderr
@@ -1,4 +1,4 @@
-error: `[u8; _]` is forbidden as the type of a const generic parameter
+error: `[u8; Bar::<u32>::value()]` is forbidden as the type of a const generic parameter
--> $DIR/issue-75047.rs:14:21
|
LL | struct Foo<const N: [u8; Bar::<u32>::value()]>;
diff --git a/tests/ui/const-generics/issues/issue-75047.rs b/tests/ui/const-generics/issues/issue-75047.rs
new file mode 100644
index 000000000..7b6fb92bc
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-75047.rs
@@ -0,0 +1,17 @@
+// [full] check-pass
+// revisions: full min
+#![cfg_attr(full, feature(adt_const_params))]
+#![cfg_attr(full, allow(incomplete_features))]
+
+struct Bar<T>(T);
+
+impl<T> Bar<T> {
+ const fn value() -> usize {
+ 42
+ }
+}
+
+struct Foo<const N: [u8; Bar::<u32>::value()]>;
+//[min]~^ ERROR `[u8; Bar::<u32>::value()]` is forbidden as the type of a const generic parameter
+
+fn main() {}
diff --git a/src/test/ui/const-generics/issues/issue-75299.rs b/tests/ui/const-generics/issues/issue-75299.rs
index 83ef09af8..83ef09af8 100644
--- a/src/test/ui/const-generics/issues/issue-75299.rs
+++ b/tests/ui/const-generics/issues/issue-75299.rs
diff --git a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.rs
index 2e6b02236..2e6b02236 100644
--- a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs
+++ b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.rs
diff --git a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr
index 3b53e18e6..3b53e18e6 100644
--- a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr
+++ b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr
diff --git a/src/test/ui/const-generics/issues/issue-77357.rs b/tests/ui/const-generics/issues/issue-77357.rs
index 3cb8d3846..3cb8d3846 100644
--- a/src/test/ui/const-generics/issues/issue-77357.rs
+++ b/tests/ui/const-generics/issues/issue-77357.rs
diff --git a/src/test/ui/const-generics/issues/issue-77357.stderr b/tests/ui/const-generics/issues/issue-77357.stderr
index 804c0ae51..68b35a38b 100644
--- a/src/test/ui/const-generics/issues/issue-77357.stderr
+++ b/tests/ui/const-generics/issues/issue-77357.stderr
@@ -2,7 +2,7 @@ error: overly complex generic constant
--> $DIR/issue-77357.rs:6:46
|
LL | fn bug<'a, T>() -> &'static dyn MyTrait<[(); { |x: &'a u32| { x }; 4 }]> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
|
= help: consider moving this anonymous constant into a `const` function
= note: this operation may be supported in the future
diff --git a/src/test/ui/const-generics/issues/issue-79674.rs b/tests/ui/const-generics/issues/issue-79674.rs
index ff141d328..ff141d328 100644
--- a/src/test/ui/const-generics/issues/issue-79674.rs
+++ b/tests/ui/const-generics/issues/issue-79674.rs
diff --git a/src/test/ui/const-generics/issues/issue-79674.stderr b/tests/ui/const-generics/issues/issue-79674.stderr
index 02b48b55f..02b48b55f 100644
--- a/src/test/ui/const-generics/issues/issue-79674.stderr
+++ b/tests/ui/const-generics/issues/issue-79674.stderr
diff --git a/src/test/ui/const-generics/issues/issue-80062.rs b/tests/ui/const-generics/issues/issue-80062.rs
index 56dc53298..56dc53298 100644
--- a/src/test/ui/const-generics/issues/issue-80062.rs
+++ b/tests/ui/const-generics/issues/issue-80062.rs
diff --git a/src/test/ui/const-generics/issues/issue-80062.stderr b/tests/ui/const-generics/issues/issue-80062.stderr
index 754f18d5c..754f18d5c 100644
--- a/src/test/ui/const-generics/issues/issue-80062.stderr
+++ b/tests/ui/const-generics/issues/issue-80062.stderr
diff --git a/src/test/ui/const-generics/issues/issue-80375.rs b/tests/ui/const-generics/issues/issue-80375.rs
index c906bb2c4..c906bb2c4 100644
--- a/src/test/ui/const-generics/issues/issue-80375.rs
+++ b/tests/ui/const-generics/issues/issue-80375.rs
diff --git a/src/test/ui/const-generics/issues/issue-80375.stderr b/tests/ui/const-generics/issues/issue-80375.stderr
index 5409002a9..5409002a9 100644
--- a/src/test/ui/const-generics/issues/issue-80375.stderr
+++ b/tests/ui/const-generics/issues/issue-80375.stderr
diff --git a/src/test/ui/const-generics/issues/issue-82956.rs b/tests/ui/const-generics/issues/issue-82956.rs
index 3539e9b96..3539e9b96 100644
--- a/src/test/ui/const-generics/issues/issue-82956.rs
+++ b/tests/ui/const-generics/issues/issue-82956.rs
diff --git a/src/test/ui/const-generics/issues/issue-82956.stderr b/tests/ui/const-generics/issues/issue-82956.stderr
index d2320293e..d2320293e 100644
--- a/src/test/ui/const-generics/issues/issue-82956.stderr
+++ b/tests/ui/const-generics/issues/issue-82956.stderr
diff --git a/src/test/ui/const-generics/issues/issue-83249.rs b/tests/ui/const-generics/issues/issue-83249.rs
index 65148c55e..65148c55e 100644
--- a/src/test/ui/const-generics/issues/issue-83249.rs
+++ b/tests/ui/const-generics/issues/issue-83249.rs
diff --git a/src/test/ui/const-generics/issues/issue-83249.stderr b/tests/ui/const-generics/issues/issue-83249.stderr
index 362b8554b..7491fdc8a 100644
--- a/src/test/ui/const-generics/issues/issue-83249.stderr
+++ b/tests/ui/const-generics/issues/issue-83249.stderr
@@ -6,8 +6,8 @@ LL | let _ = foo([0; 1]);
|
help: consider giving this pattern a type
|
-LL | let _: _ = foo([0; 1]);
- | +++
+LL | let _: /* Type */ = foo([0; 1]);
+ | ++++++++++++
error: aborting due to previous error
diff --git a/src/test/ui/const-generics/issues/issue-83288.rs b/tests/ui/const-generics/issues/issue-83288.rs
index a24596d24..a24596d24 100644
--- a/src/test/ui/const-generics/issues/issue-83288.rs
+++ b/tests/ui/const-generics/issues/issue-83288.rs
diff --git a/src/test/ui/const-generics/issues/issue-83466.rs b/tests/ui/const-generics/issues/issue-83466.rs
index 73c930101..73c930101 100644
--- a/src/test/ui/const-generics/issues/issue-83466.rs
+++ b/tests/ui/const-generics/issues/issue-83466.rs
diff --git a/src/test/ui/const-generics/issues/issue-83466.stderr b/tests/ui/const-generics/issues/issue-83466.stderr
index bcfd70639..bcfd70639 100644
--- a/src/test/ui/const-generics/issues/issue-83466.stderr
+++ b/tests/ui/const-generics/issues/issue-83466.stderr
diff --git a/src/test/ui/const-generics/issues/issue-83765.rs b/tests/ui/const-generics/issues/issue-83765.rs
index 71c164ab0..71c164ab0 100644
--- a/src/test/ui/const-generics/issues/issue-83765.rs
+++ b/tests/ui/const-generics/issues/issue-83765.rs
diff --git a/src/test/ui/const-generics/issues/issue-83765.stderr b/tests/ui/const-generics/issues/issue-83765.stderr
index d7b2b006c..d7b2b006c 100644
--- a/src/test/ui/const-generics/issues/issue-83765.stderr
+++ b/tests/ui/const-generics/issues/issue-83765.stderr
diff --git a/src/test/ui/const-generics/issues/issue-83993.rs b/tests/ui/const-generics/issues/issue-83993.rs
index f2f05d952..f2f05d952 100644
--- a/src/test/ui/const-generics/issues/issue-83993.rs
+++ b/tests/ui/const-generics/issues/issue-83993.rs
diff --git a/src/test/ui/const-generics/issues/issue-84659.rs b/tests/ui/const-generics/issues/issue-84659.rs
index 440ca740a..440ca740a 100644
--- a/src/test/ui/const-generics/issues/issue-84659.rs
+++ b/tests/ui/const-generics/issues/issue-84659.rs
diff --git a/src/test/ui/const-generics/issues/issue-84659.stderr b/tests/ui/const-generics/issues/issue-84659.stderr
index 2dfc48a34..2dfc48a34 100644
--- a/src/test/ui/const-generics/issues/issue-84659.stderr
+++ b/tests/ui/const-generics/issues/issue-84659.stderr
diff --git a/src/test/ui/const-generics/issues/issue-85031-2.rs b/tests/ui/const-generics/issues/issue-85031-2.rs
index 4908fb296..50dd66da6 100644
--- a/src/test/ui/const-generics/issues/issue-85031-2.rs
+++ b/tests/ui/const-generics/issues/issue-85031-2.rs
@@ -1,5 +1,5 @@
// check-pass
-// known-bug
+// known-bug: unknown
// This should not compile, as the compiler should not know
// `A - 0` is satisfied `?x - 0` if `?x` is inferred to `A`.
@@ -10,7 +10,6 @@ pub struct Ref<'a>(&'a i32);
impl<'a> Ref<'a> {
pub fn foo<const A: usize>() -> [(); A - 0] {
- //~^ WARN function cannot
Self::foo()
}
}
diff --git a/src/test/ui/const-generics/issues/issue-85031-2.stderr b/tests/ui/const-generics/issues/issue-85031-2.stderr
index fc6905768..896e1c7ea 100644
--- a/src/test/ui/const-generics/issues/issue-85031-2.stderr
+++ b/tests/ui/const-generics/issues/issue-85031-2.stderr
@@ -3,7 +3,6 @@ warning: function cannot return without recursing
|
LL | pub fn foo<const A: usize>() -> [(); A - 0] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
-LL |
LL | Self::foo()
| ----------- recursive call site
|
diff --git a/src/test/ui/const-generics/issues/issue-86033.rs b/tests/ui/const-generics/issues/issue-86033.rs
index cf08f722f..cf08f722f 100644
--- a/src/test/ui/const-generics/issues/issue-86033.rs
+++ b/tests/ui/const-generics/issues/issue-86033.rs
diff --git a/src/test/ui/const-generics/issues/issue-86530.rs b/tests/ui/const-generics/issues/issue-86530.rs
index b024decd4..b024decd4 100644
--- a/src/test/ui/const-generics/issues/issue-86530.rs
+++ b/tests/ui/const-generics/issues/issue-86530.rs
diff --git a/src/test/ui/const-generics/issues/issue-86530.stderr b/tests/ui/const-generics/issues/issue-86530.stderr
index c63857b23..c63857b23 100644
--- a/src/test/ui/const-generics/issues/issue-86530.stderr
+++ b/tests/ui/const-generics/issues/issue-86530.stderr
diff --git a/src/test/ui/const-generics/issues/issue-86535-2.rs b/tests/ui/const-generics/issues/issue-86535-2.rs
index 0b535fd66..0b535fd66 100644
--- a/src/test/ui/const-generics/issues/issue-86535-2.rs
+++ b/tests/ui/const-generics/issues/issue-86535-2.rs
diff --git a/src/test/ui/const-generics/issues/issue-86535.rs b/tests/ui/const-generics/issues/issue-86535.rs
index 5289c4e99..5289c4e99 100644
--- a/src/test/ui/const-generics/issues/issue-86535.rs
+++ b/tests/ui/const-generics/issues/issue-86535.rs
diff --git a/src/test/ui/const-generics/issues/issue-86820.rs b/tests/ui/const-generics/issues/issue-86820.rs
index ae4bd943f..ae4bd943f 100644
--- a/src/test/ui/const-generics/issues/issue-86820.rs
+++ b/tests/ui/const-generics/issues/issue-86820.rs
diff --git a/src/test/ui/const-generics/issues/issue-86820.stderr b/tests/ui/const-generics/issues/issue-86820.stderr
index 3a9cd957f..3a9cd957f 100644
--- a/src/test/ui/const-generics/issues/issue-86820.stderr
+++ b/tests/ui/const-generics/issues/issue-86820.stderr
diff --git a/src/test/ui/const-generics/issues/issue-87076.rs b/tests/ui/const-generics/issues/issue-87076.rs
index 8a567678b..8a567678b 100644
--- a/src/test/ui/const-generics/issues/issue-87076.rs
+++ b/tests/ui/const-generics/issues/issue-87076.rs
diff --git a/src/test/ui/const-generics/issues/issue-87470.rs b/tests/ui/const-generics/issues/issue-87470.rs
index d60181a41..d60181a41 100644
--- a/src/test/ui/const-generics/issues/issue-87470.rs
+++ b/tests/ui/const-generics/issues/issue-87470.rs
diff --git a/src/test/ui/const-generics/issues/issue-87493.rs b/tests/ui/const-generics/issues/issue-87493.rs
index d8599ab22..d8599ab22 100644
--- a/src/test/ui/const-generics/issues/issue-87493.rs
+++ b/tests/ui/const-generics/issues/issue-87493.rs
diff --git a/src/test/ui/const-generics/issues/issue-87493.stderr b/tests/ui/const-generics/issues/issue-87493.stderr
index 653afae21..653afae21 100644
--- a/src/test/ui/const-generics/issues/issue-87493.stderr
+++ b/tests/ui/const-generics/issues/issue-87493.stderr
diff --git a/src/test/ui/const-generics/issues/issue-87964.rs b/tests/ui/const-generics/issues/issue-87964.rs
index 116686abb..116686abb 100644
--- a/src/test/ui/const-generics/issues/issue-87964.rs
+++ b/tests/ui/const-generics/issues/issue-87964.rs
diff --git a/src/test/ui/const-generics/issues/issue-88119.rs b/tests/ui/const-generics/issues/issue-88119.rs
index 647b0eea8..647b0eea8 100644
--- a/src/test/ui/const-generics/issues/issue-88119.rs
+++ b/tests/ui/const-generics/issues/issue-88119.rs
diff --git a/src/test/ui/const-generics/issues/issue-88468.rs b/tests/ui/const-generics/issues/issue-88468.rs
index 914047236..914047236 100644
--- a/src/test/ui/const-generics/issues/issue-88468.rs
+++ b/tests/ui/const-generics/issues/issue-88468.rs
diff --git a/src/test/ui/const-generics/issues/issue-88997.rs b/tests/ui/const-generics/issues/issue-88997.rs
index 7666a5141..7666a5141 100644
--- a/src/test/ui/const-generics/issues/issue-88997.rs
+++ b/tests/ui/const-generics/issues/issue-88997.rs
diff --git a/src/test/ui/const-generics/issues/issue-88997.stderr b/tests/ui/const-generics/issues/issue-88997.stderr
index 505ba0da2..505ba0da2 100644
--- a/src/test/ui/const-generics/issues/issue-88997.stderr
+++ b/tests/ui/const-generics/issues/issue-88997.stderr
diff --git a/src/test/ui/const-generics/issues/issue-89146.rs b/tests/ui/const-generics/issues/issue-89146.rs
index e3540f46f..e3540f46f 100644
--- a/src/test/ui/const-generics/issues/issue-89146.rs
+++ b/tests/ui/const-generics/issues/issue-89146.rs
diff --git a/src/test/ui/const-generics/issues/issue-89304.rs b/tests/ui/const-generics/issues/issue-89304.rs
index d544d637c..d544d637c 100644
--- a/src/test/ui/const-generics/issues/issue-89304.rs
+++ b/tests/ui/const-generics/issues/issue-89304.rs
diff --git a/src/test/ui/const-generics/issues/issue-89320.rs b/tests/ui/const-generics/issues/issue-89320.rs
index afa5c8fab..afa5c8fab 100644
--- a/src/test/ui/const-generics/issues/issue-89320.rs
+++ b/tests/ui/const-generics/issues/issue-89320.rs
diff --git a/src/test/ui/const-generics/issues/issue-89334.rs b/tests/ui/const-generics/issues/issue-89334.rs
index b15b7428c..b15b7428c 100644
--- a/src/test/ui/const-generics/issues/issue-89334.rs
+++ b/tests/ui/const-generics/issues/issue-89334.rs
diff --git a/src/test/ui/const-generics/issues/issue-90318.rs b/tests/ui/const-generics/issues/issue-90318.rs
index d6c48e63b..909997340 100644
--- a/src/test/ui/const-generics/issues/issue-90318.rs
+++ b/tests/ui/const-generics/issues/issue-90318.rs
@@ -12,14 +12,14 @@ impl True for If<true> {}
fn consume<T: 'static>(_val: T)
where
If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
- //~^ ERROR: can't compare
+ //~^ overly complex generic constant
{
}
fn test<T: 'static>()
where
If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
- //~^ ERROR: can't compare
+ //~^ overly complex generic constant
{
}
diff --git a/tests/ui/const-generics/issues/issue-90318.stderr b/tests/ui/const-generics/issues/issue-90318.stderr
new file mode 100644
index 000000000..f13fd795d
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-90318.stderr
@@ -0,0 +1,24 @@
+error: overly complex generic constant
+ --> $DIR/issue-90318.rs:14:8
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | borrowing is not supported in generic constants
+ |
+ = help: consider moving this anonymous constant into a `const` function
+ = note: this operation may be supported in the future
+
+error: overly complex generic constant
+ --> $DIR/issue-90318.rs:21:8
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
+ | |
+ | borrowing is not supported in generic constants
+ |
+ = help: consider moving this anonymous constant into a `const` function
+ = note: this operation may be supported in the future
+
+error: aborting due to 2 previous errors
+
diff --git a/src/test/ui/const-generics/issues/issue-90364.rs b/tests/ui/const-generics/issues/issue-90364.rs
index b11b07b50..b11b07b50 100644
--- a/src/test/ui/const-generics/issues/issue-90364.rs
+++ b/tests/ui/const-generics/issues/issue-90364.rs
diff --git a/src/test/ui/const-generics/issues/issue-90364.stderr b/tests/ui/const-generics/issues/issue-90364.stderr
index e85bd136e..e85bd136e 100644
--- a/src/test/ui/const-generics/issues/issue-90364.stderr
+++ b/tests/ui/const-generics/issues/issue-90364.stderr
diff --git a/src/test/ui/const-generics/issues/issue-90455.rs b/tests/ui/const-generics/issues/issue-90455.rs
index a580410cf..a580410cf 100644
--- a/src/test/ui/const-generics/issues/issue-90455.rs
+++ b/tests/ui/const-generics/issues/issue-90455.rs
diff --git a/src/test/ui/const-generics/issues/issue-90455.stderr b/tests/ui/const-generics/issues/issue-90455.stderr
index 724d7f42e..724d7f42e 100644
--- a/src/test/ui/const-generics/issues/issue-90455.stderr
+++ b/tests/ui/const-generics/issues/issue-90455.stderr
diff --git a/src/test/ui/const-generics/issues/issue-92186.rs b/tests/ui/const-generics/issues/issue-92186.rs
index 9ced4667d..9ced4667d 100644
--- a/src/test/ui/const-generics/issues/issue-92186.rs
+++ b/tests/ui/const-generics/issues/issue-92186.rs
diff --git a/src/test/ui/const-generics/issues/issue-96654.rs b/tests/ui/const-generics/issues/issue-96654.rs
index 8cf786dbe..8cf786dbe 100644
--- a/src/test/ui/const-generics/issues/issue-96654.rs
+++ b/tests/ui/const-generics/issues/issue-96654.rs
diff --git a/src/test/ui/const-generics/issues/issue-97278.rs b/tests/ui/const-generics/issues/issue-97278.rs
index da0a9776f..da0a9776f 100644
--- a/src/test/ui/const-generics/issues/issue-97278.rs
+++ b/tests/ui/const-generics/issues/issue-97278.rs
diff --git a/src/test/ui/const-generics/issues/issue-97278.stderr b/tests/ui/const-generics/issues/issue-97278.stderr
index ff13cb505..ff13cb505 100644
--- a/src/test/ui/const-generics/issues/issue-97278.stderr
+++ b/tests/ui/const-generics/issues/issue-97278.stderr
diff --git a/src/test/ui/const-generics/issues/issue-97634.rs b/tests/ui/const-generics/issues/issue-97634.rs
index 422e8de68..422e8de68 100644
--- a/src/test/ui/const-generics/issues/issue-97634.rs
+++ b/tests/ui/const-generics/issues/issue-97634.rs
diff --git a/src/test/ui/const-generics/issues/issue-98629.rs b/tests/ui/const-generics/issues/issue-98629.rs
index 1d2d3012a..1d2d3012a 100644
--- a/src/test/ui/const-generics/issues/issue-98629.rs
+++ b/tests/ui/const-generics/issues/issue-98629.rs
diff --git a/src/test/ui/const-generics/issues/issue-98629.stderr b/tests/ui/const-generics/issues/issue-98629.stderr
index 4a248be76..4a248be76 100644
--- a/src/test/ui/const-generics/issues/issue-98629.stderr
+++ b/tests/ui/const-generics/issues/issue-98629.stderr
diff --git a/src/test/ui/const-generics/issues/issue-99641.rs b/tests/ui/const-generics/issues/issue-99641.rs
index fae6d3fc4..fae6d3fc4 100644
--- a/src/test/ui/const-generics/issues/issue-99641.rs
+++ b/tests/ui/const-generics/issues/issue-99641.rs
diff --git a/src/test/ui/const-generics/issues/issue-99641.stderr b/tests/ui/const-generics/issues/issue-99641.stderr
index 349ebba08..349ebba08 100644
--- a/src/test/ui/const-generics/issues/issue-99641.stderr
+++ b/tests/ui/const-generics/issues/issue-99641.stderr
diff --git a/src/test/ui/const-generics/late-bound-vars/in_closure.rs b/tests/ui/const-generics/late-bound-vars/in_closure.rs
index 5294cc3b5..5294cc3b5 100644
--- a/src/test/ui/const-generics/late-bound-vars/in_closure.rs
+++ b/tests/ui/const-generics/late-bound-vars/in_closure.rs
diff --git a/src/test/ui/const-generics/late-bound-vars/simple.rs b/tests/ui/const-generics/late-bound-vars/simple.rs
index 6da5395ef..6da5395ef 100644
--- a/src/test/ui/const-generics/late-bound-vars/simple.rs
+++ b/tests/ui/const-generics/late-bound-vars/simple.rs
diff --git a/src/test/ui/const-generics/legacy-const-generics-bad.rs b/tests/ui/const-generics/legacy-const-generics-bad.rs
index 538eee337..538eee337 100644
--- a/src/test/ui/const-generics/legacy-const-generics-bad.rs
+++ b/tests/ui/const-generics/legacy-const-generics-bad.rs
diff --git a/src/test/ui/const-generics/legacy-const-generics-bad.stderr b/tests/ui/const-generics/legacy-const-generics-bad.stderr
index 3c78dd6c7..3c78dd6c7 100644
--- a/src/test/ui/const-generics/legacy-const-generics-bad.stderr
+++ b/tests/ui/const-generics/legacy-const-generics-bad.stderr
diff --git a/src/test/ui/const-generics/legacy-const-generics.rs b/tests/ui/const-generics/legacy-const-generics.rs
index 9abc72d98..9abc72d98 100644
--- a/src/test/ui/const-generics/legacy-const-generics.rs
+++ b/tests/ui/const-generics/legacy-const-generics.rs
diff --git a/src/test/ui/const-generics/min_const_generics/assoc_const.rs b/tests/ui/const-generics/min_const_generics/assoc_const.rs
index 27e971b5b..27e971b5b 100644
--- a/src/test/ui/const-generics/min_const_generics/assoc_const.rs
+++ b/tests/ui/const-generics/min_const_generics/assoc_const.rs
diff --git a/src/test/ui/const-generics/min_const_generics/complex-expression.rs b/tests/ui/const-generics/min_const_generics/complex-expression.rs
index 8e667aeba..8e667aeba 100644
--- a/src/test/ui/const-generics/min_const_generics/complex-expression.rs
+++ b/tests/ui/const-generics/min_const_generics/complex-expression.rs
diff --git a/src/test/ui/const-generics/min_const_generics/complex-expression.stderr b/tests/ui/const-generics/min_const_generics/complex-expression.stderr
index deabd05a6..deabd05a6 100644
--- a/src/test/ui/const-generics/min_const_generics/complex-expression.stderr
+++ b/tests/ui/const-generics/min_const_generics/complex-expression.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/complex-types.rs b/tests/ui/const-generics/min_const_generics/complex-types.rs
index 057bd5af8..057bd5af8 100644
--- a/src/test/ui/const-generics/min_const_generics/complex-types.rs
+++ b/tests/ui/const-generics/min_const_generics/complex-types.rs
diff --git a/src/test/ui/const-generics/min_const_generics/complex-types.stderr b/tests/ui/const-generics/min_const_generics/complex-types.stderr
index 4ddbadb54..4ddbadb54 100644
--- a/src/test/ui/const-generics/min_const_generics/complex-types.stderr
+++ b/tests/ui/const-generics/min_const_generics/complex-types.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs
index e9d868093..e9d868093 100644
--- a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs
+++ b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs
diff --git a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr
index 8003dfa40..8003dfa40 100644
--- a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr
+++ b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs
index fac3777cf..fac3777cf 100644
--- a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs
+++ b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs
diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
index a6825b845..a6825b845 100644
--- a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
+++ b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs
index e12e07a28..e12e07a28 100644
--- a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs
+++ b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs
diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr
index d9bcc523b..d9bcc523b 100644
--- a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr
+++ b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/const_default_first.rs b/tests/ui/const-generics/min_const_generics/const_default_first.rs
index eafafb8a2..eafafb8a2 100644
--- a/src/test/ui/const-generics/min_const_generics/const_default_first.rs
+++ b/tests/ui/const-generics/min_const_generics/const_default_first.rs
diff --git a/src/test/ui/const-generics/min_const_generics/const_default_first.stderr b/tests/ui/const-generics/min_const_generics/const_default_first.stderr
index 0d5a393cb..0d5a393cb 100644
--- a/src/test/ui/const-generics/min_const_generics/const_default_first.stderr
+++ b/tests/ui/const-generics/min_const_generics/const_default_first.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/const_fn_in_generics.rs b/tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs
index 0c10af6c4..0c10af6c4 100644
--- a/src/test/ui/const-generics/min_const_generics/const_fn_in_generics.rs
+++ b/tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs
diff --git a/src/test/ui/const-generics/min_const_generics/default_function_param.rs b/tests/ui/const-generics/min_const_generics/default_function_param.rs
index 92d495ef6..92d495ef6 100644
--- a/src/test/ui/const-generics/min_const_generics/default_function_param.rs
+++ b/tests/ui/const-generics/min_const_generics/default_function_param.rs
diff --git a/src/test/ui/const-generics/min_const_generics/default_function_param.stderr b/tests/ui/const-generics/min_const_generics/default_function_param.stderr
index dedad2880..dedad2880 100644
--- a/src/test/ui/const-generics/min_const_generics/default_function_param.stderr
+++ b/tests/ui/const-generics/min_const_generics/default_function_param.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/default_trait_param.rs b/tests/ui/const-generics/min_const_generics/default_trait_param.rs
index 9cd5e3279..9cd5e3279 100644
--- a/src/test/ui/const-generics/min_const_generics/default_trait_param.rs
+++ b/tests/ui/const-generics/min_const_generics/default_trait_param.rs
diff --git a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs
index 6215b7d93..6215b7d93 100644
--- a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs
+++ b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs
diff --git a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr
index 5f641b070..5f641b070 100644
--- a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr
+++ b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs
index e1cf7b579..e1cf7b579 100644
--- a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs
+++ b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs
diff --git a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr
index bda885970..bda885970 100644
--- a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr
+++ b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/inferred_const.rs b/tests/ui/const-generics/min_const_generics/inferred_const.rs
index 57d694158..57d694158 100644
--- a/src/test/ui/const-generics/min_const_generics/inferred_const.rs
+++ b/tests/ui/const-generics/min_const_generics/inferred_const.rs
diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr b/tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr
index be92429e3..be92429e3 100644
--- a/src/test/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr
+++ b/tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr b/tests/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
index be92429e3..be92429e3 100644
--- a/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
+++ b/tests/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.rs b/tests/ui/const-generics/min_const_generics/invalid-patterns.rs
index 13b2cca2f..13b2cca2f 100644
--- a/src/test/ui/const-generics/min_const_generics/invalid-patterns.rs
+++ b/tests/ui/const-generics/min_const_generics/invalid-patterns.rs
diff --git a/src/test/ui/const-generics/min_const_generics/macro-fail.rs b/tests/ui/const-generics/min_const_generics/macro-fail.rs
index 7fb69032e..7fb69032e 100644
--- a/src/test/ui/const-generics/min_const_generics/macro-fail.rs
+++ b/tests/ui/const-generics/min_const_generics/macro-fail.rs
diff --git a/src/test/ui/const-generics/min_const_generics/macro-fail.stderr b/tests/ui/const-generics/min_const_generics/macro-fail.stderr
index 9f73b91aa..9f73b91aa 100644
--- a/src/test/ui/const-generics/min_const_generics/macro-fail.stderr
+++ b/tests/ui/const-generics/min_const_generics/macro-fail.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/macro.rs b/tests/ui/const-generics/min_const_generics/macro.rs
index 9b63f7698..9b63f7698 100644
--- a/src/test/ui/const-generics/min_const_generics/macro.rs
+++ b/tests/ui/const-generics/min_const_generics/macro.rs
diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.rs b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.rs
index 9ef619365..9ef619365 100644
--- a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.rs
+++ b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.rs
diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr
index 16a7687c0..16a7687c0 100644
--- a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr
+++ b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.rs b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.rs
index 286ec2d24..286ec2d24 100644
--- a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.rs
+++ b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.rs
diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr
index 41546292c..41546292c 100644
--- a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr
+++ b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr
diff --git a/src/test/ui/const-generics/min_const_generics/type_and_const_defaults.rs b/tests/ui/const-generics/min_const_generics/type_and_const_defaults.rs
index fa119c59f..fa119c59f 100644
--- a/src/test/ui/const-generics/min_const_generics/type_and_const_defaults.rs
+++ b/tests/ui/const-generics/min_const_generics/type_and_const_defaults.rs
diff --git a/src/test/ui/const-generics/nested-type.full.stderr b/tests/ui/const-generics/nested-type.full.stderr
index 6d9f44065..6d9f44065 100644
--- a/src/test/ui/const-generics/nested-type.full.stderr
+++ b/tests/ui/const-generics/nested-type.full.stderr
diff --git a/tests/ui/const-generics/nested-type.min.stderr b/tests/ui/const-generics/nested-type.min.stderr
new file mode 100644
index 000000000..cff02b0d4
--- /dev/null
+++ b/tests/ui/const-generics/nested-type.min.stderr
@@ -0,0 +1,28 @@
+error: `[u8; {
+ struct Foo<const N: usize>;
+
+ impl<const N: usize> Foo<N> {
+ fn value() -> usize {
+ N
+ }
+ }
+
+ Foo::<17>::value()
+ }]` is forbidden as the type of a const generic parameter
+ --> $DIR/nested-type.rs:6:21
+ |
+LL | struct Foo<const N: [u8; {
+ | _____________________^
+LL | | struct Foo<const N: usize>;
+LL | |
+LL | | impl<const N: usize> Foo<N> {
+... |
+LL | |
+LL | | }]>;
+ | |__^
+ |
+ = note: the only supported types are integers, `bool` and `char`
+ = help: more complex types are supported with `#![feature(adt_const_params)]`
+
+error: aborting due to previous error
+
diff --git a/src/test/ui/const-generics/nested-type.rs b/tests/ui/const-generics/nested-type.rs
index 742340f43..742340f43 100644
--- a/src/test/ui/const-generics/nested-type.rs
+++ b/tests/ui/const-generics/nested-type.rs
diff --git a/src/test/ui/const-generics/occurs-check/bind-param.rs b/tests/ui/const-generics/occurs-check/bind-param.rs
index ee4244051..ee4244051 100644
--- a/src/test/ui/const-generics/occurs-check/bind-param.rs
+++ b/tests/ui/const-generics/occurs-check/bind-param.rs
diff --git a/src/test/ui/const-generics/occurs-check/unify-fixpoint.rs b/tests/ui/const-generics/occurs-check/unify-fixpoint.rs
index e6f8e4ad3..e6f8e4ad3 100644
--- a/src/test/ui/const-generics/occurs-check/unify-fixpoint.rs
+++ b/tests/ui/const-generics/occurs-check/unify-fixpoint.rs
diff --git a/src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr b/tests/ui/const-generics/occurs-check/unify-fixpoint.stderr
index fe3f24a67..fe3f24a67 100644
--- a/src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr
+++ b/tests/ui/const-generics/occurs-check/unify-fixpoint.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.rs b/tests/ui/const-generics/occurs-check/unify-n-nplusone.rs
index c6324bca1..c6324bca1 100644
--- a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.rs
+++ b/tests/ui/const-generics/occurs-check/unify-n-nplusone.rs
diff --git a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr b/tests/ui/const-generics/occurs-check/unify-n-nplusone.stderr
index 6b8e688fb..6b8e688fb 100644
--- a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr
+++ b/tests/ui/const-generics/occurs-check/unify-n-nplusone.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-1.rs b/tests/ui/const-generics/occurs-check/unused-substs-1.rs
index 9d12250c9..9d12250c9 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-1.rs
+++ b/tests/ui/const-generics/occurs-check/unused-substs-1.rs
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-1.stderr b/tests/ui/const-generics/occurs-check/unused-substs-1.stderr
index a3c011d92..a3c011d92 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-1.stderr
+++ b/tests/ui/const-generics/occurs-check/unused-substs-1.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-2.rs b/tests/ui/const-generics/occurs-check/unused-substs-2.rs
index 9b1212694..9b1212694 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-2.rs
+++ b/tests/ui/const-generics/occurs-check/unused-substs-2.rs
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-2.stderr b/tests/ui/const-generics/occurs-check/unused-substs-2.stderr
index 9532fc21a..9532fc21a 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-2.stderr
+++ b/tests/ui/const-generics/occurs-check/unused-substs-2.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-3.rs b/tests/ui/const-generics/occurs-check/unused-substs-3.rs
index d5aeab47e..d5aeab47e 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-3.rs
+++ b/tests/ui/const-generics/occurs-check/unused-substs-3.rs
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-3.stderr b/tests/ui/const-generics/occurs-check/unused-substs-3.stderr
index fd8f8b269..fd8f8b269 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-3.stderr
+++ b/tests/ui/const-generics/occurs-check/unused-substs-3.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-4.rs b/tests/ui/const-generics/occurs-check/unused-substs-4.rs
index 03c2f5486..03c2f5486 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-4.rs
+++ b/tests/ui/const-generics/occurs-check/unused-substs-4.rs
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-4.stderr b/tests/ui/const-generics/occurs-check/unused-substs-4.stderr
index 5685eedbd..5685eedbd 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-4.stderr
+++ b/tests/ui/const-generics/occurs-check/unused-substs-4.stderr
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-5.rs b/tests/ui/const-generics/occurs-check/unused-substs-5.rs
index 383ab4cd8..383ab4cd8 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-5.rs
+++ b/tests/ui/const-generics/occurs-check/unused-substs-5.rs
diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-5.stderr b/tests/ui/const-generics/occurs-check/unused-substs-5.stderr
index be289f44f..be289f44f 100644
--- a/src/test/ui/const-generics/occurs-check/unused-substs-5.stderr
+++ b/tests/ui/const-generics/occurs-check/unused-substs-5.stderr
diff --git a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.rs b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
index 3018439af..3018439af 100644
--- a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.rs
+++ b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
diff --git a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.stderr b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.stderr
index 9d9555d3f..9d9555d3f 100644
--- a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.stderr
+++ b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.stderr
diff --git a/src/test/ui/const-generics/overlapping_impls.rs b/tests/ui/const-generics/overlapping_impls.rs
index e599eadd8..e599eadd8 100644
--- a/src/test/ui/const-generics/overlapping_impls.rs
+++ b/tests/ui/const-generics/overlapping_impls.rs
diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr
index 9f0b2efae..9f0b2efae 100644
--- a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr
+++ b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr
diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr
index a5e70f6b9..a5e70f6b9 100644
--- a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr
+++ b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr
diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
index b24a7afab..b24a7afab 100644
--- a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
+++ b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
diff --git a/src/test/ui/const-generics/parent_generics_of_encoding.rs b/tests/ui/const-generics/parent_generics_of_encoding.rs
index b87e3960f..b87e3960f 100644
--- a/src/test/ui/const-generics/parent_generics_of_encoding.rs
+++ b/tests/ui/const-generics/parent_generics_of_encoding.rs
diff --git a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.rs b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.rs
index 7a78e0f10..7a78e0f10 100644
--- a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.rs
+++ b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.rs
diff --git a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr
index 87ff7babe..87ff7babe 100644
--- a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr
+++ b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs
index 99d8e9dea..99d8e9dea 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr
index 1de24bff4..1de24bff4 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs
index b126b2485..b126b2485 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr
index acfdde8e1..acfdde8e1 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.rs
index 0ec6762b6..0ec6762b6 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.rs
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.rs
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.stderr
index f0d0d90c7..f0d0d90c7 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.stderr
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.stderr
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013.rs
index 9431779fa..9431779fa 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013.rs
diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013.stderr
index 583749a85..583749a85 100644
--- a/src/test/ui/const-generics/parser-error-recovery/issue-89013.stderr
+++ b/tests/ui/const-generics/parser-error-recovery/issue-89013.stderr
diff --git a/src/test/ui/const-generics/projection-as-arg-const.rs b/tests/ui/const-generics/projection-as-arg-const.rs
index 903548c75..903548c75 100644
--- a/src/test/ui/const-generics/projection-as-arg-const.rs
+++ b/tests/ui/const-generics/projection-as-arg-const.rs
diff --git a/src/test/ui/const-generics/projection-as-arg-const.stderr b/tests/ui/const-generics/projection-as-arg-const.stderr
index 803ed9c95..803ed9c95 100644
--- a/src/test/ui/const-generics/projection-as-arg-const.stderr
+++ b/tests/ui/const-generics/projection-as-arg-const.stderr
diff --git a/src/test/ui/const-generics/promotion.rs b/tests/ui/const-generics/promotion.rs
index ce9a1a0fe..ce9a1a0fe 100644
--- a/src/test/ui/const-generics/promotion.rs
+++ b/tests/ui/const-generics/promotion.rs
diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.full.stderr b/tests/ui/const-generics/raw-ptr-const-param-deref.full.stderr
index 657eee2be..657eee2be 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param-deref.full.stderr
+++ b/tests/ui/const-generics/raw-ptr-const-param-deref.full.stderr
diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.min.stderr b/tests/ui/const-generics/raw-ptr-const-param-deref.min.stderr
index 04bc46cb4..04bc46cb4 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param-deref.min.stderr
+++ b/tests/ui/const-generics/raw-ptr-const-param-deref.min.stderr
diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.rs b/tests/ui/const-generics/raw-ptr-const-param-deref.rs
index 65595f07d..65595f07d 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param-deref.rs
+++ b/tests/ui/const-generics/raw-ptr-const-param-deref.rs
diff --git a/src/test/ui/const-generics/raw-ptr-const-param.full.stderr b/tests/ui/const-generics/raw-ptr-const-param.full.stderr
index 69f1aae56..69f1aae56 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param.full.stderr
+++ b/tests/ui/const-generics/raw-ptr-const-param.full.stderr
diff --git a/src/test/ui/const-generics/raw-ptr-const-param.min.stderr b/tests/ui/const-generics/raw-ptr-const-param.min.stderr
index 310422aaf..310422aaf 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param.min.stderr
+++ b/tests/ui/const-generics/raw-ptr-const-param.min.stderr
diff --git a/src/test/ui/const-generics/raw-ptr-const-param.rs b/tests/ui/const-generics/raw-ptr-const-param.rs
index 27ef9e7d9..27ef9e7d9 100644
--- a/src/test/ui/const-generics/raw-ptr-const-param.rs
+++ b/tests/ui/const-generics/raw-ptr-const-param.rs
diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.full.stderr b/tests/ui/const-generics/slice-const-param-mismatch.full.stderr
index 80dd1be33..80dd1be33 100644
--- a/src/test/ui/const-generics/slice-const-param-mismatch.full.stderr
+++ b/tests/ui/const-generics/slice-const-param-mismatch.full.stderr
diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.min.stderr b/tests/ui/const-generics/slice-const-param-mismatch.min.stderr
index fed802f6a..fed802f6a 100644
--- a/src/test/ui/const-generics/slice-const-param-mismatch.min.stderr
+++ b/tests/ui/const-generics/slice-const-param-mismatch.min.stderr
diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.rs b/tests/ui/const-generics/slice-const-param-mismatch.rs
index 7127323e5..7127323e5 100644
--- a/src/test/ui/const-generics/slice-const-param-mismatch.rs
+++ b/tests/ui/const-generics/slice-const-param-mismatch.rs
diff --git a/src/test/ui/const-generics/slice-const-param.rs b/tests/ui/const-generics/slice-const-param.rs
index 05d21e08d..05d21e08d 100644
--- a/src/test/ui/const-generics/slice-const-param.rs
+++ b/tests/ui/const-generics/slice-const-param.rs
diff --git a/src/test/ui/const-generics/sneaky-array-repeat-expr.rs b/tests/ui/const-generics/sneaky-array-repeat-expr.rs
index b147c246b..b147c246b 100644
--- a/src/test/ui/const-generics/sneaky-array-repeat-expr.rs
+++ b/tests/ui/const-generics/sneaky-array-repeat-expr.rs
diff --git a/src/test/ui/const-generics/sneaky-array-repeat-expr.stderr b/tests/ui/const-generics/sneaky-array-repeat-expr.stderr
index 5c77375d3..5c77375d3 100644
--- a/src/test/ui/const-generics/sneaky-array-repeat-expr.stderr
+++ b/tests/ui/const-generics/sneaky-array-repeat-expr.stderr
diff --git a/src/test/ui/const-generics/std/const-generics-range.min.stderr b/tests/ui/const-generics/std/const-generics-range.min.stderr
index d4b2ad6fd..d4b2ad6fd 100644
--- a/src/test/ui/const-generics/std/const-generics-range.min.stderr
+++ b/tests/ui/const-generics/std/const-generics-range.min.stderr
diff --git a/src/test/ui/const-generics/std/const-generics-range.rs b/tests/ui/const-generics/std/const-generics-range.rs
index 46c06f312..46c06f312 100644
--- a/src/test/ui/const-generics/std/const-generics-range.rs
+++ b/tests/ui/const-generics/std/const-generics-range.rs
diff --git a/src/test/ui/const-generics/struct-with-invalid-const-param.rs b/tests/ui/const-generics/struct-with-invalid-const-param.rs
index be1c4b0e8..be1c4b0e8 100644
--- a/src/test/ui/const-generics/struct-with-invalid-const-param.rs
+++ b/tests/ui/const-generics/struct-with-invalid-const-param.rs
diff --git a/src/test/ui/const-generics/struct-with-invalid-const-param.stderr b/tests/ui/const-generics/struct-with-invalid-const-param.stderr
index 67f497af5..67f497af5 100644
--- a/src/test/ui/const-generics/struct-with-invalid-const-param.stderr
+++ b/tests/ui/const-generics/struct-with-invalid-const-param.stderr
diff --git a/src/test/ui/const-generics/suggest_const_for_array.rs b/tests/ui/const-generics/suggest_const_for_array.rs
index f3e5a3186..f3e5a3186 100644
--- a/src/test/ui/const-generics/suggest_const_for_array.rs
+++ b/tests/ui/const-generics/suggest_const_for_array.rs
diff --git a/src/test/ui/const-generics/suggest_const_for_array.stderr b/tests/ui/const-generics/suggest_const_for_array.stderr
index a617bf2bb..a617bf2bb 100644
--- a/src/test/ui/const-generics/suggest_const_for_array.stderr
+++ b/tests/ui/const-generics/suggest_const_for_array.stderr
diff --git a/src/test/ui/const-generics/trait-const-args.rs b/tests/ui/const-generics/trait-const-args.rs
index 2cdef3fb4..2cdef3fb4 100644
--- a/src/test/ui/const-generics/trait-const-args.rs
+++ b/tests/ui/const-generics/trait-const-args.rs
diff --git a/src/test/ui/const-generics/transmute-const-param-static-reference.min.stderr b/tests/ui/const-generics/transmute-const-param-static-reference.min.stderr
index 039c4276c..039c4276c 100644
--- a/src/test/ui/const-generics/transmute-const-param-static-reference.min.stderr
+++ b/tests/ui/const-generics/transmute-const-param-static-reference.min.stderr
diff --git a/src/test/ui/const-generics/transmute-const-param-static-reference.rs b/tests/ui/const-generics/transmute-const-param-static-reference.rs
index 6b443c8bd..6b443c8bd 100644
--- a/src/test/ui/const-generics/transmute-const-param-static-reference.rs
+++ b/tests/ui/const-generics/transmute-const-param-static-reference.rs
diff --git a/src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs b/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs
index 926e807fe..926e807fe 100644
--- a/src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs
+++ b/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs
diff --git a/src/test/ui/const-generics/try_unify_ignore_lifetimes.rs b/tests/ui/const-generics/try_unify_ignore_lifetimes.rs
index 2ae0ae70d..2ae0ae70d 100644
--- a/src/test/ui/const-generics/try_unify_ignore_lifetimes.rs
+++ b/tests/ui/const-generics/try_unify_ignore_lifetimes.rs
diff --git a/tests/ui/const-generics/two_matching_preds.rs b/tests/ui/const-generics/two_matching_preds.rs
new file mode 100644
index 000000000..de608f73e
--- /dev/null
+++ b/tests/ui/const-generics/two_matching_preds.rs
@@ -0,0 +1,19 @@
+// check-pass
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+fn foo<const N: usize>()
+where
+ [(); N + 1]:,
+ [(); N + 1]:,
+{
+ bar::<N>();
+}
+
+fn bar<const N: usize>()
+where
+ [(); N + 1]:,
+{
+}
+
+fn main() {}
diff --git a/src/test/ui/const-generics/type-after-const-ok.rs b/tests/ui/const-generics/type-after-const-ok.rs
index f37b0b102..f37b0b102 100644
--- a/src/test/ui/const-generics/type-after-const-ok.rs
+++ b/tests/ui/const-generics/type-after-const-ok.rs
diff --git a/src/test/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs b/tests/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs
index 5dfcbba0e..5dfcbba0e 100644
--- a/src/test/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs
+++ b/tests/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs
diff --git a/src/test/ui/const-generics/type-dependent/const-arg-in-const-arg.rs b/tests/ui/const-generics/type-dependent/const-arg-in-const-arg.rs
index e84414834..e84414834 100644
--- a/src/test/ui/const-generics/type-dependent/const-arg-in-const-arg.rs
+++ b/tests/ui/const-generics/type-dependent/const-arg-in-const-arg.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-61936.rs b/tests/ui/const-generics/type-dependent/issue-61936.rs
index 7216b25f0..7216b25f0 100644
--- a/src/test/ui/const-generics/type-dependent/issue-61936.rs
+++ b/tests/ui/const-generics/type-dependent/issue-61936.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-63695.rs b/tests/ui/const-generics/type-dependent/issue-63695.rs
index 08b6d4bf5..08b6d4bf5 100644
--- a/src/test/ui/const-generics/type-dependent/issue-63695.rs
+++ b/tests/ui/const-generics/type-dependent/issue-63695.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-67144-1.rs b/tests/ui/const-generics/type-dependent/issue-67144-1.rs
index 27dd51de2..27dd51de2 100644
--- a/src/test/ui/const-generics/type-dependent/issue-67144-1.rs
+++ b/tests/ui/const-generics/type-dependent/issue-67144-1.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-67144-2.rs b/tests/ui/const-generics/type-dependent/issue-67144-2.rs
index b26f551eb..b26f551eb 100644
--- a/src/test/ui/const-generics/type-dependent/issue-67144-2.rs
+++ b/tests/ui/const-generics/type-dependent/issue-67144-2.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-69816.rs b/tests/ui/const-generics/type-dependent/issue-69816.rs
index cbb6b398e..cbb6b398e 100644
--- a/src/test/ui/const-generics/type-dependent/issue-69816.rs
+++ b/tests/ui/const-generics/type-dependent/issue-69816.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-70217.rs b/tests/ui/const-generics/type-dependent/issue-70217.rs
index 933ca0276..933ca0276 100644
--- a/src/test/ui/const-generics/type-dependent/issue-70217.rs
+++ b/tests/ui/const-generics/type-dependent/issue-70217.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-70507.rs b/tests/ui/const-generics/type-dependent/issue-70507.rs
index c72d9fbec..c72d9fbec 100644
--- a/src/test/ui/const-generics/type-dependent/issue-70507.rs
+++ b/tests/ui/const-generics/type-dependent/issue-70507.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-70586.rs b/tests/ui/const-generics/type-dependent/issue-70586.rs
index 346ac4b72..346ac4b72 100644
--- a/src/test/ui/const-generics/type-dependent/issue-70586.rs
+++ b/tests/ui/const-generics/type-dependent/issue-70586.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-71348.min.stderr b/tests/ui/const-generics/type-dependent/issue-71348.min.stderr
index b8fbb3979..b8fbb3979 100644
--- a/src/test/ui/const-generics/type-dependent/issue-71348.min.stderr
+++ b/tests/ui/const-generics/type-dependent/issue-71348.min.stderr
diff --git a/src/test/ui/const-generics/type-dependent/issue-71348.rs b/tests/ui/const-generics/type-dependent/issue-71348.rs
index 2ef2f066a..2ef2f066a 100644
--- a/src/test/ui/const-generics/type-dependent/issue-71348.rs
+++ b/tests/ui/const-generics/type-dependent/issue-71348.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-71382.rs b/tests/ui/const-generics/type-dependent/issue-71382.rs
index 1c4073e36..1c4073e36 100644
--- a/src/test/ui/const-generics/type-dependent/issue-71382.rs
+++ b/tests/ui/const-generics/type-dependent/issue-71382.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-71382.stderr b/tests/ui/const-generics/type-dependent/issue-71382.stderr
index ad522aead..ad522aead 100644
--- a/src/test/ui/const-generics/type-dependent/issue-71382.stderr
+++ b/tests/ui/const-generics/type-dependent/issue-71382.stderr
diff --git a/src/test/ui/const-generics/type-dependent/issue-71805.rs b/tests/ui/const-generics/type-dependent/issue-71805.rs
index 060b89964..060b89964 100644
--- a/src/test/ui/const-generics/type-dependent/issue-71805.rs
+++ b/tests/ui/const-generics/type-dependent/issue-71805.rs
diff --git a/src/test/ui/const-generics/type-dependent/issue-73730.rs b/tests/ui/const-generics/type-dependent/issue-73730.rs
index 5e1b8c635..5e1b8c635 100644
--- a/src/test/ui/const-generics/type-dependent/issue-73730.rs
+++ b/tests/ui/const-generics/type-dependent/issue-73730.rs
diff --git a/src/test/ui/const-generics/type-dependent/non-local.rs b/tests/ui/const-generics/type-dependent/non-local.rs
index b755de30b..b755de30b 100644
--- a/src/test/ui/const-generics/type-dependent/non-local.rs
+++ b/tests/ui/const-generics/type-dependent/non-local.rs
diff --git a/src/test/ui/const-generics/type-dependent/qpath.rs b/tests/ui/const-generics/type-dependent/qpath.rs
index 2d678d0ac..2d678d0ac 100644
--- a/src/test/ui/const-generics/type-dependent/qpath.rs
+++ b/tests/ui/const-generics/type-dependent/qpath.rs
diff --git a/src/test/ui/const-generics/type-dependent/simple.rs b/tests/ui/const-generics/type-dependent/simple.rs
index 1b13133b5..1b13133b5 100644
--- a/src/test/ui/const-generics/type-dependent/simple.rs
+++ b/tests/ui/const-generics/type-dependent/simple.rs
diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr b/tests/ui/const-generics/type-dependent/type-mismatch.full.stderr
index 70bc64057..70bc64057 100644
--- a/src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr
+++ b/tests/ui/const-generics/type-dependent/type-mismatch.full.stderr
diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr b/tests/ui/const-generics/type-dependent/type-mismatch.min.stderr
index 70bc64057..70bc64057 100644
--- a/src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr
+++ b/tests/ui/const-generics/type-dependent/type-mismatch.min.stderr
diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.rs b/tests/ui/const-generics/type-dependent/type-mismatch.rs
index 3335ab870..3335ab870 100644
--- a/src/test/ui/const-generics/type-dependent/type-mismatch.rs
+++ b/tests/ui/const-generics/type-dependent/type-mismatch.rs
diff --git a/src/test/ui/const-generics/type_mismatch.rs b/tests/ui/const-generics/type_mismatch.rs
index 4a7534e37..4a7534e37 100644
--- a/src/test/ui/const-generics/type_mismatch.rs
+++ b/tests/ui/const-generics/type_mismatch.rs
diff --git a/src/test/ui/const-generics/type_mismatch.stderr b/tests/ui/const-generics/type_mismatch.stderr
index 8d779bee2..8d779bee2 100644
--- a/src/test/ui/const-generics/type_mismatch.stderr
+++ b/tests/ui/const-generics/type_mismatch.stderr
diff --git a/src/test/ui/const-generics/type_not_in_scope.rs b/tests/ui/const-generics/type_not_in_scope.rs
index 593370180..593370180 100644
--- a/src/test/ui/const-generics/type_not_in_scope.rs
+++ b/tests/ui/const-generics/type_not_in_scope.rs
diff --git a/src/test/ui/const-generics/type_not_in_scope.stderr b/tests/ui/const-generics/type_not_in_scope.stderr
index 16796acb3..16796acb3 100644
--- a/src/test/ui/const-generics/type_not_in_scope.stderr
+++ b/tests/ui/const-generics/type_not_in_scope.stderr
diff --git a/src/test/ui/const-generics/type_of_anon_const.rs b/tests/ui/const-generics/type_of_anon_const.rs
index fb0d688a8..fb0d688a8 100644
--- a/src/test/ui/const-generics/type_of_anon_const.rs
+++ b/tests/ui/const-generics/type_of_anon_const.rs
diff --git a/src/test/ui/const-generics/types-mismatch-const-args.full.stderr b/tests/ui/const-generics/types-mismatch-const-args.full.stderr
index b6a22df74..b6a22df74 100644
--- a/src/test/ui/const-generics/types-mismatch-const-args.full.stderr
+++ b/tests/ui/const-generics/types-mismatch-const-args.full.stderr
diff --git a/src/test/ui/const-generics/types-mismatch-const-args.min.stderr b/tests/ui/const-generics/types-mismatch-const-args.min.stderr
index 6ac93a08d..6ac93a08d 100644
--- a/src/test/ui/const-generics/types-mismatch-const-args.min.stderr
+++ b/tests/ui/const-generics/types-mismatch-const-args.min.stderr
diff --git a/src/test/ui/const-generics/types-mismatch-const-args.rs b/tests/ui/const-generics/types-mismatch-const-args.rs
index 43ef28b26..43ef28b26 100644
--- a/src/test/ui/const-generics/types-mismatch-const-args.rs
+++ b/tests/ui/const-generics/types-mismatch-const-args.rs
diff --git a/tests/ui/const-generics/unify_with_nested_expr.rs b/tests/ui/const-generics/unify_with_nested_expr.rs
new file mode 100644
index 000000000..1271e0902
--- /dev/null
+++ b/tests/ui/const-generics/unify_with_nested_expr.rs
@@ -0,0 +1,18 @@
+#![feature(generic_const_exprs)]
+#![allow(incomplete_features)]
+
+fn foo<const N: usize>()
+where
+ [(); N + 1 + 1]:,
+{
+ bar();
+ //~^ ERROR: type annotations
+}
+
+fn bar<const N: usize>()
+where
+ [(); N + 1]:,
+{
+}
+
+fn main() {}
diff --git a/tests/ui/const-generics/unify_with_nested_expr.stderr b/tests/ui/const-generics/unify_with_nested_expr.stderr
new file mode 100644
index 000000000..8bab0dff7
--- /dev/null
+++ b/tests/ui/const-generics/unify_with_nested_expr.stderr
@@ -0,0 +1,22 @@
+error[E0284]: type annotations needed
+ --> $DIR/unify_with_nested_expr.rs:8:5
+ |
+LL | bar();
+ | ^^^ cannot infer the value of the const parameter `N` declared on the function `bar`
+ |
+note: required by a bound in `bar`
+ --> $DIR/unify_with_nested_expr.rs:14:10
+ |
+LL | fn bar<const N: usize>()
+ | --- required by a bound in this
+LL | where
+LL | [(); N + 1]:,
+ | ^^^^^ required by this bound in `bar`
+help: consider specifying the generic argument
+ |
+LL | bar::<N>();
+ | +++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0284`.
diff --git a/src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs b/tests/ui/const-generics/uninferred-consts-during-codegen-1.rs
index c7270e835..c7270e835 100644
--- a/src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs
+++ b/tests/ui/const-generics/uninferred-consts-during-codegen-1.rs
diff --git a/src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs b/tests/ui/const-generics/uninferred-consts-during-codegen-2.rs
index 191caa78f..191caa78f 100644
--- a/src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs
+++ b/tests/ui/const-generics/uninferred-consts-during-codegen-2.rs
diff --git a/src/test/ui/const-generics/unknown_adt.rs b/tests/ui/const-generics/unknown_adt.rs
index 8cdd28a8c..8cdd28a8c 100644
--- a/src/test/ui/const-generics/unknown_adt.rs
+++ b/tests/ui/const-generics/unknown_adt.rs
diff --git a/src/test/ui/const-generics/unknown_adt.stderr b/tests/ui/const-generics/unknown_adt.stderr
index 0f462dd47..0f462dd47 100644
--- a/src/test/ui/const-generics/unknown_adt.stderr
+++ b/tests/ui/const-generics/unknown_adt.stderr
diff --git a/src/test/ui/const-generics/unused-const-param.rs b/tests/ui/const-generics/unused-const-param.rs
index c7f74cfac..c7f74cfac 100644
--- a/src/test/ui/const-generics/unused-const-param.rs
+++ b/tests/ui/const-generics/unused-const-param.rs
diff --git a/src/test/ui/const-generics/unused-type-param-suggestion.rs b/tests/ui/const-generics/unused-type-param-suggestion.rs
index 2251512c4..2251512c4 100644
--- a/src/test/ui/const-generics/unused-type-param-suggestion.rs
+++ b/tests/ui/const-generics/unused-type-param-suggestion.rs
diff --git a/src/test/ui/const-generics/unused-type-param-suggestion.stderr b/tests/ui/const-generics/unused-type-param-suggestion.stderr
index 807065ca1..807065ca1 100644
--- a/src/test/ui/const-generics/unused-type-param-suggestion.stderr
+++ b/tests/ui/const-generics/unused-type-param-suggestion.stderr
diff --git a/tests/ui/const-generics/unused_braces.fixed b/tests/ui/const-generics/unused_braces.fixed
new file mode 100644
index 000000000..4c1926387
--- /dev/null
+++ b/tests/ui/const-generics/unused_braces.fixed
@@ -0,0 +1,18 @@
+// check-pass
+// run-rustfix
+#![warn(unused_braces)]
+
+macro_rules! make_1 {
+ () => {
+ 1
+ }
+}
+
+struct A<const N: usize>;
+
+fn main() {
+ let _: A<7>; // ok
+ let _: A<7>; //~ WARN unnecessary braces
+ let _: A<{ 3 + 5 }>; // ok
+ let _: A<{make_1!()}>; // ok
+}
diff --git a/src/test/ui/const-generics/unused_braces.full.fixed b/tests/ui/const-generics/unused_braces.full.fixed
index 46d57e0dc..46d57e0dc 100644
--- a/src/test/ui/const-generics/unused_braces.full.fixed
+++ b/tests/ui/const-generics/unused_braces.full.fixed
diff --git a/src/test/ui/const-generics/unused_braces.min.fixed b/tests/ui/const-generics/unused_braces.min.fixed
index 46d57e0dc..46d57e0dc 100644
--- a/src/test/ui/const-generics/unused_braces.min.fixed
+++ b/tests/ui/const-generics/unused_braces.min.fixed
diff --git a/tests/ui/const-generics/unused_braces.rs b/tests/ui/const-generics/unused_braces.rs
new file mode 100644
index 000000000..e9f15b401
--- /dev/null
+++ b/tests/ui/const-generics/unused_braces.rs
@@ -0,0 +1,18 @@
+// check-pass
+// run-rustfix
+#![warn(unused_braces)]
+
+macro_rules! make_1 {
+ () => {
+ 1
+ }
+}
+
+struct A<const N: usize>;
+
+fn main() {
+ let _: A<7>; // ok
+ let _: A<{ 7 }>; //~ WARN unnecessary braces
+ let _: A<{ 3 + 5 }>; // ok
+ let _: A<{make_1!()}>; // ok
+}
diff --git a/tests/ui/const-generics/unused_braces.stderr b/tests/ui/const-generics/unused_braces.stderr
new file mode 100644
index 000000000..2c8031c43
--- /dev/null
+++ b/tests/ui/const-generics/unused_braces.stderr
@@ -0,0 +1,19 @@
+warning: unnecessary braces around const expression
+ --> $DIR/unused_braces.rs:15:14
+ |
+LL | let _: A<{ 7 }>;
+ | ^^ ^^
+ |
+note: the lint level is defined here
+ --> $DIR/unused_braces.rs:3:9
+ |
+LL | #![warn(unused_braces)]
+ | ^^^^^^^^^^^^^
+help: remove these braces
+ |
+LL - let _: A<{ 7 }>;
+LL + let _: A<7>;
+ |
+
+warning: 1 warning emitted
+
diff --git a/src/test/ui/const-generics/where-clauses.rs b/tests/ui/const-generics/where-clauses.rs
index aa3ca1cf6..aa3ca1cf6 100644
--- a/src/test/ui/const-generics/where-clauses.rs
+++ b/tests/ui/const-generics/where-clauses.rs