rust/src/test/ui/nll
Mazdak Farrokhzad c1975dbd34
Rollup merge of #57729 - pnkfelix:issue-55748-pat-types-are-constraints-on-bindings-too, r=nikomatsakis
extra testing of how NLL handles wildcard type `_`

test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X);` and potentially instantiated at different types when used in type ascriptions in let bindings.

(NLL's handling of this for the type ascription *expression form* is currently broken, or at least differs from what AST-borrowck does. I'll file a separate bug about that. Its not something critical to address since that expression is guarded by `#![feature(type_ascription)]`.)

cc #55748
2019-03-19 15:16:45 +01:00
..
closure-requirements rustc: always rely on '_ to be not printed by ty::Region itself. 2019-03-15 09:26:13 +02:00
relate_tys Update tests 2019-03-11 23:10:26 +03:00
ty-outlives Update tests 2019-03-11 23:10:26 +03:00
user-annotations test that wildcard type _ is not duplicated by type Foo<X> = (X, X); and potentially instantiated at different types. 2019-03-13 21:58:49 +01:00
borrow-use-issue-46875.rs
borrowck-thread-local-static-mut-borrow-outlives-fn.rs
borrowed-local-error.rs
borrowed-local-error.stderr Update tests 2019-03-11 23:10:26 +03:00
borrowed-match-issue-45045.rs
borrowed-match-issue-45045.stderr
borrowed-referent-issue-38899.rs
borrowed-referent-issue-38899.stderr Update tests 2019-03-11 23:10:26 +03:00
borrowed-temporary-error.rs
borrowed-temporary-error.stderr Update tests 2019-03-11 23:10:26 +03:00
borrowed-universal-error-2.rs
borrowed-universal-error-2.stderr
borrowed-universal-error.rs
borrowed-universal-error.stderr
cannot-move-block-spans.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
cannot-move-block-spans.rs
cannot-move-block-spans.stderr Update tests 2019-03-11 23:10:26 +03:00
capture-mut-ref.rs
capture-mut-ref.stderr
capture-ref-in-struct.rs
capture-ref-in-struct.stderr
closure-access-spans.rs
closure-access-spans.stderr Update tests 2019-03-11 23:10:26 +03:00
closure-borrow-spans.rs
closure-borrow-spans.stderr Update tests 2019-03-11 23:10:26 +03:00
closure-captures.rs
closure-captures.stderr Update tests 2019-03-11 23:10:26 +03:00
closure-move-spans.rs
closure-move-spans.stderr Update tests 2019-03-11 23:10:26 +03:00
closure-use-spans.rs
closure-use-spans.stderr Update tests 2019-03-11 23:10:26 +03:00
closures-in-loops.rs
closures-in-loops.stderr Update tests 2019-03-11 23:10:26 +03:00
constant-thread-locals-issue-47053.rs
constant-thread-locals-issue-47053.stderr Update tests 2019-03-11 23:10:26 +03:00
constant.rs
decl-macro-illegal-copy.rs
decl-macro-illegal-copy.stderr re-blessing error output: ./x.py test src/test/ui --stage 1 --bless 2019-02-18 12:33:33 -07:00
do-not-ignore-lifetime-bounds-in-copy.rs
do-not-ignore-lifetime-bounds-in-copy.stderr Update tests 2019-03-11 23:10:26 +03:00
drop-may-dangle.rs
drop-no-may-dangle.rs
drop-no-may-dangle.stderr Update tests 2019-03-11 23:10:26 +03:00
enum-drop-access.rs
enum-drop-access.stderr Update tests 2019-03-11 23:10:26 +03:00
extra-unused-mut.rs
generator-distinct-lifetime.rs
generator-upvar-mutability.rs
generator-upvar-mutability.stderr
get_default.nll.stderr
get_default.rs
get_default.stderr
guarantor-issue-46974.rs
guarantor-issue-46974.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-16223.rs
issue-21114-ebfull.rs
issue-21114-kixunil.rs
issue-21232-partial-init-and-erroneous-use.rs
issue-21232-partial-init-and-erroneous-use.stderr re-blessing error output: ./x.py test src/test/ui --stage 1 --bless 2019-02-18 12:33:33 -07:00
issue-21232-partial-init-and-use.rs
issue-21232-partial-init-and-use.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-22323-temp-destruction.rs
issue-27868.rs
issue-27868.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-30104.rs
issue-31567.rs
issue-31567.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-32382-index-assoc-type-with-lifetime.rs
issue-43058.rs
issue-46589.rs
issue-46589.stderr
issue-47022.rs
issue-47388.rs
issue-47388.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-47470.rs
issue-47470.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-48070.rs
issue-48238.rs
issue-48238.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-48697.rs Include bounds from promoted constants in NLL 2019-03-01 18:53:14 +00:00
issue-48697.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-50716-1.rs
issue-50716.rs
issue-50716.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-51191.rs
issue-51191.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-51244.rs
issue-51244.stderr
issue-51268.rs
issue-51268.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-51351.rs
issue-51512.rs
issue-51512.stderr When using value after move, point at span of local 2019-01-24 10:36:50 -08:00
issue-52059-report-when-borrow-and-drop-conflict.rs
issue-52059-report-when-borrow-and-drop-conflict.stderr
issue-52078.rs
issue-52086.rs
issue-52086.stderr
issue-52113.rs
issue-52113.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-52534-1.rs
issue-52534-1.stderr
issue-52534-2.rs
issue-52534-2.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-52534.rs
issue-52534.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-52663-span-decl-captured-variable.rs
issue-52663-span-decl-captured-variable.stderr
issue-52663-trait-object.rs
issue-52663-trait-object.stderr
issue-52669.rs
issue-52669.stderr When using value after move, point at span of local 2019-01-24 10:36:50 -08:00
issue-52742.rs
issue-52742.stderr
issue-53040.rs
issue-53040.stderr
issue-53119.rs
issue-53570.rs
issue-53773.rs Fix erroneous loop diagnostic in nll 2019-02-20 12:15:08 -03:00
issue-53773.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-53807.nll.stderr
issue-53807.rs
issue-53807.stderr
issue-54382-use-span-of-tail-of-block.nll.stderr
issue-54382-use-span-of-tail-of-block.rs
issue-54382-use-span-of-tail-of-block.stderr
issue-54556-niconii.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
issue-54556-niconii.rs
issue-54556-niconii.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-54556-stephaneyfx.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
issue-54556-stephaneyfx.rs
issue-54556-stephaneyfx.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-54556-temps-in-tail-diagnostic.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
issue-54556-temps-in-tail-diagnostic.rs
issue-54556-temps-in-tail-diagnostic.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-54556-used-vs-unused-tails.nll.stderr
issue-54556-used-vs-unused-tails.rs
issue-54556-used-vs-unused-tails.stderr
issue-54556-wrap-it-up.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
issue-54556-wrap-it-up.rs
issue-54556-wrap-it-up.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-55288.rs
issue-55344.rs
issue-55394.rs
issue-55394.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-55401.rs
issue-55401.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-55651.rs
issue-55850.nll.stderr Update NLL tests 2019-03-11 23:18:35 +03:00
issue-55850.rs Change generator trait to use pinning 2019-01-27 22:58:53 +01:00
issue-55850.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-57100.rs
issue-57100.stderr
issue-57265-return-type-wf-check.rs
issue-57265-return-type-wf-check.stderr
issue-57280-1.rs
issue-57280.rs
issue-57960.rs Lower constant patterns with ascribed types. 2019-02-06 21:10:43 +01:00
issue-57989.rs Pass correct arguments to places_conflict 2019-01-30 19:49:31 +00:00
issue-57989.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-58053.rs Fix span for closure return type when annotated. 2019-02-05 11:10:04 +01:00
issue-58053.stderr Fix span for closure return type when annotated. 2019-02-05 11:10:04 +01:00
issue-58299.rs Check user type annotations for range patterns. 2019-02-12 19:37:54 +01:00
issue-58299.stderr Update tests 2019-03-11 23:10:26 +03:00
loan_ends_mid_block_pair.rs
loan_ends_mid_block_pair.stderr
loan_ends_mid_block_vec.rs
loan_ends_mid_block_vec.stderr Update tests 2019-03-11 23:10:26 +03:00
match-cfg-fake-edges.rs Improve error message and add tests for borrowck match handling 2019-02-21 19:03:33 +00:00
match-cfg-fake-edges.stderr Update tests 2019-03-11 23:10:26 +03:00
match-guards-always-borrow.ast.nll.stderr Updated UI test output to remove test annotations for revisions 2019-03-17 17:00:18 +01:00
match-guards-always-borrow.ast.stderr Updated UI test output to remove test annotations for revisions 2019-03-17 17:00:18 +01:00
match-guards-always-borrow.mir.stderr
match-guards-always-borrow.rs
match-guards-partially-borrow.rs Use normal mutable borrows in MIR match lowering 2019-02-21 19:03:34 +00:00
match-guards-partially-borrow.stderr Update tests 2019-03-11 23:10:26 +03:00
match-on-borrowed.rs
match-on-borrowed.stderr Update tests 2019-03-11 23:10:26 +03:00
maybe-initialized-drop-implicit-fragment-drop.rs
maybe-initialized-drop-implicit-fragment-drop.stderr Update tests 2019-03-11 23:10:26 +03:00
maybe-initialized-drop-uninitialized.rs
maybe-initialized-drop-with-fragment.rs
maybe-initialized-drop-with-fragment.stderr Update tests 2019-03-11 23:10:26 +03:00
maybe-initialized-drop-with-uninitialized-fragments.rs
maybe-initialized-drop-with-uninitialized-fragments.stderr Update tests 2019-03-11 23:10:26 +03:00
maybe-initialized-drop.rs
maybe-initialized-drop.stderr Update tests 2019-03-11 23:10:26 +03:00
mir_check_cast_closure.rs
mir_check_cast_closure.stderr
mir_check_cast_reify.rs
mir_check_cast_reify.stderr
mir_check_cast_unsafe_fn.rs
mir_check_cast_unsafe_fn.stderr
mir_check_cast_unsize.rs
mir_check_cast_unsize.stderr
move-errors.rs
move-errors.stderr Update tests 2019-03-11 23:10:26 +03:00
move-subpaths-moves-root.rs
move-subpaths-moves-root.stderr Update tests 2019-03-11 23:10:26 +03:00
normalization-bounds-error.rs
normalization-bounds-error.stderr
normalization-bounds.rs
polonius-smoke-test.rs
polonius-smoke-test.stderr Update tests 2019-03-11 23:10:26 +03:00
projection-return.rs
promotable-mutable-zst-doesnt-conflict.rs
promoted-bounds.rs Include bounds from promoted constants in NLL 2019-03-01 18:53:14 +00:00
promoted-bounds.stderr Update tests 2019-03-11 23:10:26 +03:00
promoted-closure-pair.rs Include bounds from promoted constants in NLL 2019-03-01 18:53:14 +00:00
promoted-closure-pair.stderr Update tests 2019-03-11 23:10:26 +03:00
reference-carried-through-struct-field.ast.nll.stderr Updated UI test output to remove test annotations for revisions 2019-03-17 17:00:18 +01:00
reference-carried-through-struct-field.ast.stderr Updated UI test output to remove test annotations for revisions 2019-03-17 17:00:18 +01:00
reference-carried-through-struct-field.mir.stderr Updated UI test output to remove test annotations for revisions 2019-03-17 17:00:18 +01:00
reference-carried-through-struct-field.rs
region-ends-after-if-condition.nll.stderr
region-ends-after-if-condition.rs
region-ends-after-if-condition.stderr
return_from_loop.rs
return_from_loop.stderr
return-ref-mut-issue-46557.rs
return-ref-mut-issue-46557.stderr Update tests 2019-03-11 23:10:26 +03:00
trait-associated-constant.rs Rename test struct names to something more sensible 2019-03-12 18:33:27 -04:00
trait-associated-constant.stderr Rename test struct names to something more sensible 2019-03-12 18:33:27 -04:00
type-alias-free-regions.rs
type-alias-free-regions.stderr Update tests 2019-03-11 23:10:26 +03:00
type-check-pointer-coercions.rs Type check coercions to pointer types 2019-02-23 14:25:03 +00:00
type-check-pointer-coercions.stderr Update tests 2019-03-11 23:10:26 +03:00
type-check-pointer-comparisons.rs Type check pointer comparisons 2019-02-24 13:02:37 +00:00
type-check-pointer-comparisons.stderr Type check pointer comparisons 2019-02-24 13:02:37 +00:00
unused-mut-issue-50343.rs
unused-mut-issue-50343.stderr
where_clauses_in_functions.rs
where_clauses_in_functions.stderr
where_clauses_in_structs.rs
where_clauses_in_structs.stderr