summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-outlives-scalar.rs
blob: ce34ffcc858151317e3fbd87379add0dd3bc3789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() { }