Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
next-solver
/
borrowck-error.rs
blob: 1de13d7fd78c45b4ab71c5818fecd17e37155f97 [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags: -Znext-solver
use
std
::
collections
::
HashMap
;
fn
foo
()
->
&
'
static
HashMap
<
i32
,
i32
>
{
&
HashMap
::
new
()
//~^ ERROR cannot return reference to temporary value
}
fn
main
()
{}