rust/src/test/ui/const-generics
Dylan DPC 1083833b3e
Rollup merge of #76401 - JulianKnodt:i68366, r=lcnr
Add help note to unconstrained const parameter

Resolves #68366, since it is currently intended behaviour.
If demonstrating `T -> U` is injective, there should be an additional word that it is not **yet** supported.

r? @lcnr
2020-09-09 01:35:20 +02:00
..
array-impls Fix copypaste in test into-iter-impls-length-33 (const generic 32 -> 33) 2020-07-05 19:06:02 +03:00
auxiliary Properly encode AnonConst into crate metadata 2020-05-26 01:48:45 -04:00
defaults Flip order of const & type 2020-08-12 23:19:07 +00:00
issues Add regression test and help note 2020-09-07 20:12:02 +00:00
min_const_generics change const param ty warning message 2020-08-18 22:44:06 +02:00
std pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
type-dependent Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
apit-with-const-param.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
argument_order.full.stderr Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
argument_order.min.stderr Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
argument_order.rs Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
array-size-in-generic-struct-param.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
array-size-in-generic-struct-param.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
array-size-in-generic-struct-param.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
array-wrapper-struct-ctor.rs Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
broken-mir-1.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
broken-mir-2.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
cannot-infer-const-args.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
cannot-infer-const-args.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
cannot-infer-const-args.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
cannot-infer-type-for-const-param.rs Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
coerce_unsized_array.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
concrete-const-as-fn-arg.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
concrete-const-impl-method.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
condition-in-trait-const-arg.rs Update stderr files 2020-08-12 20:04:36 +00:00
const-arg-in-fn.rs Update stderr files 2020-08-12 20:04:36 +00:00
const-arg-type-arg-misordered.full.stderr Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
const-arg-type-arg-misordered.min.stderr Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
const-arg-type-arg-misordered.rs Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
const-argument-cross-crate-mismatch.rs Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
const-argument-cross-crate-mismatch.stderr Remove E0308 note when primary label has all info 2019-11-18 11:03:03 -08:00
const-argument-cross-crate.rs Include const generic arguments in metadata. 2019-10-15 07:24:19 +13:00
const-argument-non-static-lifetime.rs Update stderr files 2020-08-12 20:04:36 +00:00
const-expression-parameter.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-expression-parameter.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-expression-parameter.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-fn-with-const-param.rs Update stderr files 2020-08-12 20:04:36 +00:00
const-generic-array-wrapper.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-generic-type_name.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-after-const-literal-arg.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-before-other-params.full.stderr Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
const-param-before-other-params.min.stderr Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
const-param-before-other-params.rs Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
const-param-elided-lifetime.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-elided-lifetime.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
const-param-elided-lifetime.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
const-param-from-outer-fn.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-from-outer-fn.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-from-outer-fn.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-in-trait-ungated.rs Add tests 2019-05-04 14:39:43 +01:00
const-param-in-trait-ungated.stderr impl review 2020-08-05 18:30:37 +02:00
const-param-in-trait.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-type-depends-on-const-param.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-param-type-depends-on-const-param.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
const-param-type-depends-on-const-param.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
const-param-type-depends-on-type-param-ungated.rs Add regression test for #69414 2020-07-17 15:45:50 +01:00
const-param-type-depends-on-type-param-ungated.stderr impl review 2020-08-05 18:30:37 +02:00
const-param-type-depends-on-type-param.full.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
const-param-type-depends-on-type-param.min.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
const-param-type-depends-on-type-param.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-parameter-uppercase-lint.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-parameter-uppercase-lint.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-parameter-uppercase-lint.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
const-types.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
derive-debug-array-wrapper.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
different_byref.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
different_byref.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
different_byref.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
different_byref_simple.full.stderr Update stderr files 2020-08-12 20:04:36 +00:00
different_byref_simple.min.stderr Update stderr files 2020-08-12 20:04:36 +00:00
different_byref_simple.rs Update stderr files 2020-08-12 20:04:36 +00:00
fn-const-param-call.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
fn-const-param-call.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
fn-const-param-call.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
fn-const-param-infer.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
fn-const-param-infer.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
fn-const-param-infer.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
fn-taking-const-generic-array.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
forbid-non-structural_match-types.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
forbid-non-structural_match-types.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
forbid-non-structural_match-types.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
foreign-item-const-parameter.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
foreign-item-const-parameter.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
foreign-item-const-parameter.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
impl-const-generic-struct.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
incorrect-number-of-const-args.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
incorrect-number-of-const-args.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
incorrect-number-of-const-args.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
infer_arg_from_pat.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
infer_arr_len_from_pat.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
integer-literal-generic-arg-in-where-clause.rs Update stderr files 2020-08-12 20:04:36 +00:00
invalid-const-arg-for-type-param.rs Add a test for invalid const arguments 2019-05-10 20:53:35 +01:00
invalid-const-arg-for-type-param.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
invalid-constant-in-args.rs Add a test for invalid const arguments 2019-03-07 23:39:01 +00:00
invalid-constant-in-args.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-61522-array-len-succ.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-61522-array-len-succ.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-61522-array-len-succ.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-66596-impl-trait-for-str-const-arg.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
issue-66596-impl-trait-for-str-const-arg.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
issue-68104-print-stack-overflow.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-70180-1-stalled_on.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-70180-2-stalled_on.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
issue-71986.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
min-and-full-same-time.rs Implementation of incompatible features error 2020-09-04 22:17:28 +08:00
min-and-full-same-time.stderr Implementation of incompatible features error 2020-09-04 22:17:28 +08:00
mut-ref-const-param-array.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
nested-type.full.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
nested-type.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
nested-type.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
params-in-ct-in-ty-param-lazy-norm.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
params-in-ct-in-ty-param-lazy-norm.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
params-in-ct-in-ty-param-lazy-norm.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
raw-ptr-const-param-deref.full.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
raw-ptr-const-param-deref.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
raw-ptr-const-param-deref.rs Update stderr files 2020-08-12 20:04:36 +00:00
raw-ptr-const-param.full.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
raw-ptr-const-param.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
raw-ptr-const-param.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
slice-const-param-mismatch.full.stderr Update stderr files 2020-08-12 20:04:36 +00:00
slice-const-param-mismatch.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
slice-const-param-mismatch.rs Update stderr files 2020-08-12 20:04:36 +00:00
slice-const-param.min.stderr change const param ty warning message 2020-08-18 22:44:06 +02:00
slice-const-param.rs change const param ty warning message 2020-08-18 22:44:06 +02:00
struct-with-invalid-const-param.full.stderr Update stderr files 2020-08-12 20:04:36 +00:00
struct-with-invalid-const-param.min.stderr Update stderr files 2020-08-12 20:04:36 +00:00
struct-with-invalid-const-param.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
struct-with-invalid-const-param.stderr Do not suggest similarly named enclosing item 2020-08-10 12:04:10 -07:00
trait-const-args.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
transparent-maybeunit-array-wrapper.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
type-after-const-ok.min.stderr Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
type-after-const-ok.rs Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
type_of_anon_const.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
types-mismatch-const-args.full.stderr Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
types-mismatch-const-args.min.stderr Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
types-mismatch-const-args.rs Fix duplicate error messages in const_generics tests 2020-08-31 18:52:22 +08:00
uninferred-consts-during-codegen-1.rs Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
uninferred-consts-during-codegen-2.rs Added a lot of min_const_generics revisions 2020-08-26 18:50:17 +08:00
uninferred-consts.full.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
uninferred-consts.min.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
uninferred-consts.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
unknown_adt.full.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
unknown_adt.min.stderr Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
unknown_adt.rs Add missing tests in root const-gen dir 2020-08-12 08:30:17 +00:00
unused-const-param.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
unused_braces.fixed unused_delims: trim expr 2020-08-10 12:04:51 +02:00
unused_braces.full.fixed Update stderr files 2020-08-12 20:04:36 +00:00
unused_braces.full.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
unused_braces.min.fixed Update stderr files 2020-08-12 20:04:36 +00:00
unused_braces.min.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
unused_braces.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00
wf-misc.full.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
wf-misc.min.stderr Add a bunch of revisions 2020-08-12 08:30:17 +00:00
wf-misc.rs Add a bunch of revisions 2020-08-12 08:30:17 +00:00