mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
14 lines
194 B
Rust
14 lines
194 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() { }
|