rust/tests/ui/unsized
Esteban Küber c4c22b0d52 On E0277 be clearer about implicit Sized bounds on type params and assoc types
```
error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
   --> f100.rs:2:33
    |
2   |     let _ = std::mem::size_of::<[i32]>();
    |                                 ^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `[i32]`
note: required by an implicit `Sized` bound in `std::mem::size_of`
   --> /home/gh-estebank/rust/library/core/src/mem/mod.rs:312:22
    |
312 | pub const fn size_of<T>() -> usize {
    |                      ^ required by the implicit `Sized` requirement on this bound in `size_of`
```

Fix #120178.
2024-02-01 03:30:26 +00:00
..
box-instead-of-dyn-fn.rs Remove return type sized check hack from hir typeck 2023-05-18 01:53:01 +00:00
box-instead-of-dyn-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-30355.rs
issue-30355.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-40231-1.rs
issue-40231-2.rs
issue-71659.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-71659.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-71659.rs update use of feature flags 2023-12-14 15:22:37 +01:00
issue-75707.rs
issue-75707.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-75899-but-gats.rs
issue-75899.rs update use of feature flags 2023-12-14 15:22:37 +01:00
issue-91801.rs
issue-91801.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91803.rs
issue-91803.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-97732.rs
issue-115203.rs fix: return ealry when has tainted in mir-lint 2023-09-08 09:30:23 +08:00
issue-115203.stderr fix: return ealry when has tainted in mir-lint 2023-09-08 09:30:23 +08:00
issue-115809.rs fix: skip opt if body has tainted error 2023-09-13 23:07:39 +08:00
issue-115809.stderr fix: skip opt if body has tainted error 2023-09-13 23:07:39 +08:00
maybe-bounds-where-cpass.rs
maybe-bounds-where.rs Improve some diagnostics around ?Trait bounds 2023-10-30 17:47:07 +00:00
maybe-bounds-where.stderr Improve some diagnostics around ?Trait bounds 2023-10-30 17:47:07 +00:00
param-mentioned-by-different-field.rs
param-mentioned-by-different-field.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-unsized-from-trait-method.rs
return-unsized-from-trait-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unchanged-param.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
unsize-coerce-multiple-adt-params.rs Remove a false statement from Unsize docs, add a test 2023-11-01 20:16:11 +00:00
unsized2.rs
unsized3-rpass.rs
unsized3.rs
unsized3.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized5.rs
unsized5.stderr change std::marker::Sized to just Sized 2023-06-15 12:01:38 +02:00
unsized6.rs
unsized6.stderr change std::marker::Sized to just Sized 2023-06-15 12:01:38 +02:00
unsized7.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
unsized7.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-bare-typaram.rs
unsized-bare-typaram.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-enum2.rs
unsized-enum2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
unsized-enum.rs
unsized-enum.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-fn-arg.fixed
unsized-fn-arg.rs
unsized-fn-arg.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsized-fn-param.rs
unsized-fn-param.stderr
unsized-inherent-impl-self-type.rs
unsized-inherent-impl-self-type.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-struct.rs
unsized-struct.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-trait-impl-self-type.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
unsized-trait-impl-self-type.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-trait-impl-trait-arg.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
unsized-trait-impl-trait-arg.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
unsized-tuple-impls.rs
unsized.rs