Sign in
◑
Theme
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-eval
/
ice-unsized-struct-const-eval-123154.rs
blob: 24a2cd19b187ff395a0e0ffa7bf9a99e535b95aa [
file
] [
edit
]
// Regression test for #123154
struct
AA
{
pub
data
:
[&
usize
]
//~^ ERROR missing lifetime specifier
}
impl
AA
{
const
fn
new
()
->
Self
{
}
//~^ ERROR mismatched types
}
static
ST
:
AA
=
AA
::
new
();
fn
main
()
{}