Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
parallel-rustc
/
recursive-struct-oncelock-issue-151226.rs
blob: 69cbd578325c5b9805381b31b2b816c85e4ddc98 [
file
] [
edit
]
// Test for #151226, Unable to verify registry association
//
//@ compile-flags: -Z threads=2
//@ compare-output-by-lines
struct
A
<
T
>(
std
::
sync
::
OnceLock
<
Self
>);
//~^ ERROR recursive type `A` has infinite size
static
B
:
A
<()>
=
todo
!();
fn
main
()
{}