Sign in
◑
Theme
rust
/
rust
/
refs/heads/automation/bors/try-perf
/
.
/
tests
/
ui
/
static
/
static-mut-not-constant.rs
blob: 48129c09c8dc2b21ab88c25e8410ae80ca944c54 [
file
] [
edit
]
struct
Foo
{}
impl
Foo
{
fn
new
(
_a
:
usize
)
->
Self
{
Foo
{}
}
}
static
mut
a
:
Foo
=
Foo
::
new
(
3
);
//~^ ERROR cannot call non-const associated function
fn
main
()
{}