rust/tests/ui/regions/regions-outlives-scalar.rs
2024-02-16 20:02:50 +00:00

14 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() { }