]>
Commit | Line | Data |
---|---|---|
e9174d1e SL |
1 | // Test that scalar values outlive all regions. |
2 | // Rule OutlivesScalar from RFC 1214. | |
d9579d0f | 3 | |
29967ef6 | 4 | // check-pass |
e9174d1e | 5 | #![allow(dead_code)] |
1a4d82fc | 6 | |
e9174d1e SL |
7 | struct Foo<'a> { |
8 | x: &'a i32, | |
9 | y: &'static i32 | |
223e47cc | 10 | } |
e9174d1e | 11 | |
a1dfa0c6 XL |
12 | |
13 | fn main() { } |