rust/tests/ui/generics
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
..
auxiliary Encode lifetime param spans too 2023-04-22 01:13:54 +00:00
autobind.rs
bad-mid-path-type-params.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
bad-mid-path-type-params.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
foreign-generic-mismatch.rs Encode lifetime param spans too 2023-04-22 01:13:54 +00:00
foreign-generic-mismatch.stderr Encode lifetime param spans too 2023-04-22 01:13:54 +00:00
generic-alias-unique.rs
generic-arg-mismatch-recover.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-arg-mismatch-recover.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-default-type-params-cross-crate.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-default-type-params.rs
generic-derived-type.rs
generic-exterior-unique.rs
generic-extern-lifetime.rs
generic-extern-lifetime.stderr
generic-extern-mangle.rs
generic-extern.rs
generic-extern.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-fn-infer.rs
generic-fn-twice.rs
generic-fn-unique.rs
generic-fn.rs
generic-function-item-where-type.rs
generic-function-item-where-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-impl-less-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-impl-less-params-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-impl-more-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-impl-more-params-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-ivec-leak.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-lifetime-trait-impl.rs
generic-lifetime-trait-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-newtype-struct.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-no-mangle.fixed Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-no-mangle.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-no-mangle.stderr
generic-non-trailing-defaults.rs
generic-non-trailing-defaults.stderr
generic-object.rs
generic-param-attrs.rs
generic-recursive-tag.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-static-methods.rs
generic-tag-corruption.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-tag-local.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-tag-match.rs
generic-tag-values.rs
generic-tag.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
generic-temporary.rs
generic-tup.rs
generic-type-less-params-with-defaults.rs
generic-type-less-params-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-type-more-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-type-more-params-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-type-params-forward-mention.rs
generic-type-params-forward-mention.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-type-params-name-repr.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
generic-type-params-name-repr.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
generic-type-synonym.rs
generic-type.rs
generic-unique.rs
issue-333.rs
issue-1112.rs
issue-2936.rs
issue-32498.rs Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk" 2023-07-21 22:35:57 -07:00
issue-59508-1.rs
issue-59508-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-59508.fixed
issue-59508.rs
issue-59508.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-61631-default-type-param-can-reference-self-in-trait.rs
issue-61631-default-type-param-can-reference-self-in-trait.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
issue-61631-default-type-param-cannot-reference-self.rs
issue-61631-default-type-param-cannot-reference-self.stderr
issue-65285-incorrect-explicit-lifetime-name-needed.rs Introduce ReError 2023-02-09 10:26:49 +00:00
issue-65285-incorrect-explicit-lifetime-name-needed.stderr Use structured suggestion when telling user about for<'a> 2023-06-30 00:34:14 +00:00
issue-79605.rs add UI test for #79605 2023-04-15 17:17:46 +05:30
issue-79605.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80512-param-reordering-with-defaults.rs
issue-80512-param-reordering-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-83556.rs diagnostics: simpler 83556 handling by bailing out 2023-09-22 22:41:01 -07:00
issue-83556.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-94432-garbage-ice.rs Generalize E0401 2023-09-10 23:06:14 +02:00
issue-94923.rs Update the minimum external LLVM to 15 2023-07-27 14:07:08 -07:00
issue-95208-ignore-qself.fixed
issue-95208-ignore-qself.rs
issue-95208-ignore-qself.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-95208.fixed
issue-95208.rs
issue-95208.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-98432.rs Generalize E0401 2023-09-10 23:06:14 +02:00
issue-98432.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-106694.rs
issue-106694.stderr
lifetime-before-type-params.rs
lifetime-before-type-params.stderr
mid-path-type-params.rs
param-in-ct-in-ty-param-default.rs
param-in-ct-in-ty-param-default.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
post_monomorphization_error_backtrace.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
post_monomorphization_error_backtrace.stderr
single-colon-path-not-const-generics.rs Rip it out 2023-05-01 16:15:13 +08:00
single-colon-path-not-const-generics.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
slightly-nice-generic-literal-messages.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
slightly-nice-generic-literal-messages.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
type-params-in-for-each.rs
unclosed-generics-in-impl-def.rs Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
unclosed-generics-in-impl-def.stderr Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
wrong-number-of-args.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
wrong-number-of-args.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00