rust/tests/ui/extern
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 exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
extern_fat_drop.rs
extern-1.rs
extern-calling-convention-test.rs
extern-compare-with-return-type.rs
extern-const.fixed Remove asmjs from tests 2023-10-28 23:11:03 -07:00
extern-const.rs Remove asmjs from tests 2023-10-28 23:11:03 -07:00
extern-const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-crate-multiple-missing.rs
extern-crate-multiple-missing.stderr
extern-crate-rename.rs
extern-crate-rename.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-crate-visibility.rs
extern-crate-visibility.stderr Tweak privacy errors to account for reachable items 2023-06-22 16:50:31 +00:00
extern-ffi-fn-with-body.rs
extern-ffi-fn-with-body.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-foreign-crate.rs
extern-macro.rs
extern-macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-main-fn.rs
extern-main-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-main-issue-86110.rs
extern-main-issue-86110.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-methods.rs
extern-mod-abi.rs
extern-mod-ordering-exe.rs
extern-no-mangle.rs
extern-no-mangle.stderr
extern-prelude-core.rs
extern-prelude-no-speculative.rs
extern-prelude-std.rs
extern-pub.rs
extern-rust.rs
extern-static-size-overflow.rs
extern-static-size-overflow.stderr
extern-take-value.rs
extern-thiscall.rs stabilize abi_thiscall 2023-08-07 14:11:03 +02:00
extern-type-diag-not-similar.rs
extern-type-diag-not-similar.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-types-distinct-types.rs
extern-types-distinct-types.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-types-field-offset.rs also test projecting to some sized fields at non-zero offset in structs with an extern type tail 2023-12-12 17:19:19 +01:00
extern-types-field-offset.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-inherent-impl.rs
extern-types-manual-sync-send.rs
extern-types-not-sync-send.rs
extern-types-not-sync-send.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
extern-types-pointer-cast.rs
extern-types-size_of_val.align.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-size_of_val.rs test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-size_of_val.size.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-thin-pointer.rs
extern-types-trait-impl.rs
extern-types-unsized.rs
extern-types-unsized.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
extern-vectorcall.rs
extern-with-type-bounds.rs Gate and validate #[rustc_safe_intrinsic] 2023-09-25 22:33:15 +02:00
extern-with-type-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-wrong-value-type.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
extern-wrong-value-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-1251.rs Move tests 2023-05-24 19:35:59 -03:00
issue-10025.rs
issue-10763.rs
issue-10764-rpass.rs
issue-13655.rs remove redundant imports 2023-12-10 10:56:22 +08:00
issue-28324.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-28324.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
issue-36122-accessing-externed-dst.rs
issue-36122-accessing-externed-dst.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-64655-allow-unwind-when-calling-panic-directly.rs merge core_panic feature into panic_internals 2023-12-09 14:49:00 +01:00
issue-64655-extern-rust-must-allow-unwind.rs
issue-80074.rs exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
issue-80074.stderr exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
issue-95829.rs
issue-95829.stderr
issue-112363-extern-item-where-clauses-debug-ice.rs Fix debug ICE for extern type with where clauses 2023-06-12 15:15:45 +08:00
issue-112363-extern-item-where-clauses-debug-ice.stderr Bless tests 2024-01-13 12:46:58 -05:00
issue-116203.rs discard invalid spans in external blocks 2023-11-15 15:28:38 +08:00
issue-116203.stderr discard invalid spans in external blocks 2023-11-15 15:28:38 +08:00
no-mangle-associated-fn.rs
not-in-block.rs
not-in-block.stderr