diff options
| author | bors <bors@rust-lang.org> | 2025-09-13 10:43:09 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-13 10:43:09 +0000 | 
| commit | b50f345a2f3f49764024cabc30ef99e15c0240f7 (patch) | |
| tree | 542d89dfb423203f19a9ce2345be87bb2ef7f0cb /tests/ui/traits/generic-trait-impl-aliased-array-58212.rs | |
| parent | 064cc81354a940e297a1be4dfa9e26759c8431be (diff) | |
| parent | c4539b2d58d97093fc08a42561397fa98e75c684 (diff) | |
| download | rust-b50f345a2f3f49764024cabc30ef99e15c0240f7.tar.gz rust-b50f345a2f3f49764024cabc30ef99e15c0240f7.zip  | |
Auto merge of #146499 - jhpratt:rollup-ufflehe, r=jhpratt
Rollup of 5 pull requests
Successful merges:
 - rust-lang/rust#144498 (Add --print target-spec-json-schema)
 - rust-lang/rust#145471 (Stabilize BTree{Map,Set}::extract_if)
 - rust-lang/rust#145896 (Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [rust-lang/rust#3 of Batch rust-lang/rust#2])
 - rust-lang/rust#146450 (bootstrap: rustdoc-js tests can now be filtered by js files)
 - rust-lang/rust#146456 (Fix panic and incorrectly suggested examples in `format_args` macro.)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/traits/generic-trait-impl-aliased-array-58212.rs')
| -rw-r--r-- | tests/ui/traits/generic-trait-impl-aliased-array-58212.rs | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/traits/generic-trait-impl-aliased-array-58212.rs b/tests/ui/traits/generic-trait-impl-aliased-array-58212.rs new file mode 100644 index 00000000000..a71194ba806 --- /dev/null +++ b/tests/ui/traits/generic-trait-impl-aliased-array-58212.rs @@ -0,0 +1,16 @@ +// https://github.com/rust-lang/rust/issues/58212 +//@ check-pass + +trait FromUnchecked { + fn from_unchecked(); +} + +impl FromUnchecked for [u8; 1] { + fn from_unchecked() { + let mut array: Self = [0; 1]; + let _ptr = &mut array as *mut [u8] as *mut u8; + } +} + +fn main() { +}  | 
