mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
287 B
Rust
14 lines
287 B
Rust
//@ known-bug: #130425
|
|
//@ compile-flags: -Zmir-opt-level=5 -Zpolymorphize=on
|
|
|
|
struct S<T>(T)
|
|
where
|
|
[T; (
|
|
|_: u8| {
|
|
static FOO: Sync = AtomicUsize::new(0);
|
|
unsafe { &*(&FOO as *const _ as *const usize) }
|
|
},
|
|
1,
|
|
)
|
|
.1]: Copy;
|