Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
ui
/
traits
/
next-solver
/
borrowck-error.rs
blob: 1de13d7fd78c45b4ab71c5818fecd17e37155f97 [
file
] [
log
] [
blame
]
//@ 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
()
{}