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