Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
regions
/
regions-outlives-scalar.rs
blob: ca012c4e1eda0c4cd92b1953e965c1e47096fad2 [
file
] [
log
] [
blame
]
// Test that scalar values outlive all regions.
// Rule OutlivesScalar from RFC 1214.
// compile-pass
#![
allow
(
dead_code
)]
struct
Foo
<
'
a
>
{
x
:
&
'
a i32
,
y
:
&
'
static
i32
}
fn
main
()
{
}