mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
195 B
Rust
13 lines
195 B
Rust
// 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() { }
|