rust/tests/ui/sized
Esteban Küber b1575b71d4 Silence unecessary !Sized binding error
When gathering locals, we introduce a `Sized` obligation for each
binding in the pattern. *After* doing so, we typecheck the init
expression. If this has a type failure, we store `{type error}`, for
both the expression and the pattern. But later we store an inference
variable for the pattern.

We now avoid any override of an existing type on a hir node when they've
already been marked as `{type error}`, and on E0277, when it comes from
`VariableType` we silence the error in support of the type error.

Fix #117846.
2024-03-19 21:26:11 +00:00
..
coinductive-1-gat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-2.stderr Update tests 2024-02-07 10:42:01 +08:00
expr-type-error-plus-sized-obligation.rs Silence unecessary !Sized binding error 2024-03-19 21:26:11 +00:00
expr-type-error-plus-sized-obligation.stderr Silence unecessary !Sized binding error 2024-03-19 21:26:11 +00:00
recursive-type-binding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-type-binding.stderr rename tests 2023-12-26 17:50:30 +01:00
recursive-type-coercion-from-never.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-type-coercion-from-never.stderr add test for coercing never to infinite type 2023-12-26 17:57:33 +01:00
recursive-type-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized-binding.rs
unsized-binding.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00