Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
regions
/
regions-outlives-scalar.rs
blob: 5d0ed9993800dd70eb32b9e9c449e98604583411 [
file
] [
log
] [
blame
]
// Test that scalar values outlive all regions.
// Rule OutlivesScalar from RFC 1214.
// build-pass (FIXME(62277): could be check-pass?)
#![
allow
(
dead_code
)]
struct
Foo
<
'
a
>
{
x
:
&
'
a i32
,
y
:
&
'
static
i32
}
fn
main
()
{
}