]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-outlives-scalar.rs
Apply suggestions from code review
[rust.git] / src / test / ui / regions / regions-outlives-scalar.rs
1 // Test that scalar values outlive all regions.
2 // Rule OutlivesScalar from RFC 1214.
3
4 // check-pass
5 #![allow(dead_code)]
6
7 struct Foo<'a> {
8     x: &'a i32,
9     y: &'static i32
10 }
11
12
13 fn main() { }