Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
const-eval-intrinsic-promotion.rs
blob: bdcf537859cc40d08364c1c3d4a2065e7f828315 [
file
] [
log
] [
blame
]
#![
feature
(
core_intrinsics
)]
fn
main
()
{
// Test that calls to intrinsics are never promoted
let
x
:
&
'
static
usize
=
&
std
::
intrinsics
::
size_of
::<
i32
>();
//~ ERROR temporary value dropped while borrowed
}